oracle 查询用户表名 与描述

查义表名与comments
select distinct 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');

你可能感兴趣的:(oracle)