Generate commented sql for all tables and all columns

 

Generate commented sql for all tables and all columns

 

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;

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326681148&siteId=291194637