生成所有表和所有列的注释sql

生成所有表和所有列的注释sql

select 'comment on table '||t.table_name||  ' is  ' ||'''' ||t.COMMENTS  ||'''' ||'; ' from  user_tab_comments  t  ;

  

select 'comment on column   '||c.table_name||'.'||c.column_name||'  is  '||''''||c.COMMENTS||'''' ||'; '  from  USER_COL_COMMENTS c;

猜你喜欢

转载自yangzhonglei.iteye.com/blog/2322528