oracle comment

时间:2014-03-06 23:58:05   收藏:0   阅读:1313

  comment 命令可以为表和列添加相应的注释,使表更具有可读性!

 

1.给表添加注释

comment on table scott.DW_RLW_USER_ACTION  is ‘用户日汇总‘;

2.删除表的注释

select ‘comment on table ‘||owner||‘.‘||t.table_name||‘ is ‘‘‘‘;‘ from dba_tab_comments t where table_name=‘DW_RLW_USER_ACTION;

 

3.添加列的注释
comment on column scott.DW_RLW_USER_ACTION_DT.SUM_DATE is ‘产生日期‘;

4.删除列的注释

select ‘comment on column ‘||owner||‘.‘||t.table_name||‘.‘||t.column_name||‘ is ‘‘‘‘;‘ from dba_col_comments t where table_name=‘DW_RLW_USER_ACTION;

 

本文出自 “技术” 博客,请务必保留此出处http://589985.blog.51cto.com/1609992/1369365

oracle comment,布布扣,bubuko.com

原文:http://589985.blog.51cto.com/1609992/1369365

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!