Oracle常用语句

发布时间 2023-10-07 15:29:22作者: 这一生,谢谢自己

一、表注释

1、添加表注释
comment on table scheduler_table is '调度表'
2、删除表注释
comment on table scheduler_table is ''

3、查询表注释
select * from user_tab_comments where table_name='SCHEDULER_TABLE'

4、 添加字段注释
comment on column scheduler_table.id is '主键值';
5、查询表字段注释
select * from user_col_comments where table_name='SCHEDULER_TABLE'