添加表注釋
comment on table 表名 is '表注釋'
添加字段注釋
comment on column 表名.字段名 is '字段名注釋'
查詢表注釋
select * from user_tab_comments
查詢字段注釋
select * from user_col_comments
查詢以TAB_開(kāi)頭的表的注釋
where table_name like 'TAB/_%' escape '/'
由于下劃線在數(shù)據(jù)庫(kù)中代表任意單個(gè)字符,所以需要轉(zhuǎn)義
單引號(hào)由單引號(hào)字符轉(zhuǎn)換