oracle怎么修改表注释

oracle怎么修改表注释,第1张

oracle怎么修改表注释

oracle中,可以利用“comment on”命令修改表注释,该命令用于给表或字段加以说明,也就是添加注释,语法为“comment on table 表名 is '表的注释信息';”。

本教程 *** 作环境:Windows10系统、Oracle 11g版、Dell G3电脑。

oracle怎么修改表注释

Oracle中用comment on命令给表或字段加以说明。

用法如下:

1.对表的说明:

comment on table table_name is '对表的说明';

2.对表中列的说明:

comment on column table.column_name is '对表中列的说明';

3.查看表的说明

select * from user_tab_comments where table_name = 'employees';

4.查看表中列的说明

select * from user_col_comments where table_name = 'employees';

5.查看数据库中所有表中列的说明

select * from user_col_comments where comments is not null;

6.删除表级或列级说明,即时将其设置为空

comment on table employees is '';
comment on column employees.salary is '';

推荐教程:《Oracle视频教程》

以上就是oracle怎么修改表注释的详细内容,

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/704122.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-23
下一篇 2022-04-23

发表评论

登录后才能评论

评论列表(0条)

保存