`
alyouge
  • 浏览: 190875 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

oracle 查询表名 comments及列名 comments

阅读更多

查询表的名字和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 是表名!

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics