当前位置:福百问>生活百科>oracle 中的comment on column什么意思

oracle 中的comment on column什么意思

2023-03-19 19:40:27 编辑:join 浏览量:591

comment on column命令为字段加上注释,举例如下,

1、创建数据表,

create table test_date(v_date date,v_date1 date,v_date2 date,

v_date3 date,v_date4 date,v_date5 date);

oracle 中的comment on column什么意思

2、查看该表的字段注释,可以发现‘注释’列为空,

oracle 中的comment on column什么意思

3、添加字段注释,

-- Add comments to the columns 

comment on column TEST_DATE.v_date  is '日期';

comment on column TEST_DATE.v_date1  is '日期1';

comment on column TEST_DATE.v_date2  is '日期2';

comment on column TEST_DATE.v_date3  is '日期3';

comment on column TEST_DATE.v_date4  is '日期4';

comment on column TEST_DATE.v_date5  is '日期5';

oracle 中的comment on column什么意思

4、再次查看该表属性,可以发现字段已添加上注释,

oracle 中的comment on column什么意思

标签:oracle,comment,column

版权声明:文章由 福百问 整理收集,来源于互联网或者用户投稿,如有侵权,请联系我们,我们会立即处理。如转载请保留本文链接:https://www.fubaiwen.com/life/190870.html
热门文章
二维码