oracle取表结构及其注释的SQL

--如下sql:
select a.table_name,
       a.column_name,
       a.comments,
       'comment on column ' || a.table_name||'.'||a.column_name || ' is ' || '''' || a.comments ||
       ''';' sql_
  from dba_col_comments a
 where a.owner = 'oracle用户名'
   and a.comments is not null
   order by a.table_name

你可能感兴趣的:(oracle,sql,null,Comments)