找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索本站精品资源

首页 教程频道 查看内容

oracle怎么修改表注释

作者:模板之家 2022-3-8 11:03 73人关注

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

在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 '';

路过

雷人

握手

鲜花

鸡蛋
来自: 网络收集

全部回复(0)