公司dba提供的脚本:

 

set serveroutput on
set linesize  1000
set feedback off
set long 9999999
set pagesize 0
spool /tmp/getcomments.out
select 'comment on table ' || table_name || ' is ' || '''' || comments ||
       ''';'
  from user_tab_comments
 where comments is not null;

select 'comment on column ' || table_name || '.' || column_name || ' is ' || '''' ||
       comments || ''';'
  from user_col_comments;
spool off;

 

添加表注释:

COMMENT ON table t1 IS '个人信息';

添加字段注释:
comment on column t1.id  is 'id';
comment on column t1.nameis '姓名';
comment on column t1.age is '年龄';

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-09
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
相关资源
相似解决方案