oracle获取表的属性,包括字段,注释

获取表字段:

select * 
from user_tab_columns 
where Table_Name= upper('用户表') 
order by column_name

获取表注释:

select * 
from user_tab_comments 
where Table_Name=upper('用户表') 

order by Table_Name

获取字段注释:

select * 
from user_col_comments 
where Table_Name=upper('用户表') 

order by column_name

 

注意:upper方法是必须要的,不要忽视掉了

posted @ 2018-04-17 10:22  wjj1013  阅读(771)  评论(0编辑  收藏  举报