Oracle 查询表名 comments及列名 comments


Oracle查询表的名字和comments

select a.table_name,b.comments   from   user_tables a,ALL_TAB_COMMENTS b where a.table_name=b.table_name

查询字段的名字和comments

select  distinct  a.COLUMN_NAME,b.comments from user_tab_columns a,user_col_comments b where a.TABLE_NAME=b.table_name and a.table_name=upper('A_COUNT');

A_COUNT 是表名!

相关内容