oracle怎么增加列注释
在oracle中,可以利用“comment on column 表名.列名 is 列注释;”增加列注释;comment是注释的意思, comment on命令用于给表或字段加以说明,也即添加注释,column用于设置列的数据内容。 本教
在oracle中,可以利用“comment on column 表名.列名 is '列注释';”增加列注释;comment是注释的意思, comment on命令用于给表或字段加以说明,也即添加注释,column用于设置列的数据内容。
本教程操作环境:Windows10系统、Oracle 11g版、Dell G3电脑。
oracle怎么增加列注释
给列加注释:
1、给表填加注释:SQL>comment on table 表名 is '表注释";
2、给列加注释:SQL>comment on column 表.列 is '列注释';
3、读取表注释:SQL>select * from user_tab_comments where comments is not null;
4、读取列注释:SQL>select * from user_col_commnents where comments is not null and table_name='表名';
oracle中用comment on命令给表或字段加以说明,语法如下: