oracle comment基本语句用法

例: 1.对表的说明 SQL> comment on table scott.emp is '员工信息'; 2.对表中列的说明 SQL> comment on column scott.emp.empno is '员工编号'; 3.查看表的说明 SQL> select * from user_tab_comments where TABLE_NAME='EMP';  SQL> select * from user_tab_comments where comments is not null; 4.查看表中列的说明 SQL> select * from user_col_comments where TABLE_NAME='EMP'; SQL> select * from user_tab_comments where comments is not null; 5.我们也可以从下面这些视图中查看表级和列级说明: ALL_COL_COMMENTS USER_COL_COMMENTS ALL_TAB_COMMENTS USER_TAB_COMMENTS  6.删除表级说明,也就是将其置为空 SQL> comment on table emp is '' 7.删除列级说明,也是将其置为空 SQL> comment on column emp.empno is '';


  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值