oracle为表、列添加注释,读取表、列的注释信息

 1 --给表添加注释
 2 --comment on table 表名 is '注释信息'
 3 comment on table corp_info is '公司基本信息表';
 4 comment on table corp_pswinfo is ' 登记信息表';
 5 comment on table org_info is '组织机构信息表';
 6 --给列添加注释
 7 --comment on column 表名.列名 is '注释信息'
 8 comment on column CORP_INFO.ID_NSRSBH is '识别号';
 9 comment on column CORP_INFO.ORG_NAME is '所属区县';
10 --读取表注释
11 --select * from user_tab_comments where comments is not null and table_name='表名';
12 select * from user_tab_comments where comments is not null and table_name='CORP_INFO';
13 --读取列注释
14 --select * from user_col_comments where comments is not null and table_name='表名';
15 select * from user_col_comments where comments is not null and table_name='CORP_INFO';

 

posted on 2013-12-11 14:33  划根火柴点根烟 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/muyu-jinyu/p/3469337.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值