首页 > 数据库技术 > 详细

oracle中的备注的配置与查询

时间:2015-10-14 16:02:00      阅读:227      评论:0      收藏:0      [点我收藏+]

在oracle中我们经常看到给表和列添加备注,备注增加了后期的可维护性

1.对表的说明
comment on table table_name is ‘comments‘;

2.对表中列的说明
comment on column table.column_name is ‘comments‘;

3.查看表中列的说明
SQL> select * from user_col_comments where TABLE_NAME=‘EMPLOYEES‘;

4.查看表的说明

SQL>select * from user_tab_comments where TABLE_NAME=‘EMPLOYEES‘;

5.删除表级说明,也就是将其置为空
SQL> comment on table employees is ‘‘;
Comment added

6.删除列级说明,也是将其置为空
SQL> comment on column employees.salary is ‘‘;
Comment added

oracle中的备注的配置与查询

原文:http://www.cnblogs.com/zwkevin/p/4877456.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!