Oracle表注释

1.查看当前用户下所有的表注释

select * from user_tab_comments;(all_tab_comments,dba_tab_comments)

2.查看指定表下面所有字段的注释

select * from user_col_comments where TABLE_NAME='表名';

3.给某个表添加表注释

comment on table 表名 is '备注名';

4.给某个表的某个字段添加注释

comment on column 表名.字段名 is '备注名';
发布了35 篇原创文章 · 获赞 7 · 访问量 3361

猜你喜欢

转载自blog.csdn.net/Hjchidaozhe/article/details/97264029
今日推荐