如何获取oracle字段注释?
oracle使用如下sql语句可以查询表字段的注释:
select*fromuser_col_commentstwhere1=1
andt.commentsisnotnull
andt.table_name='表名'
需注意:
1、该语句仅查询当前登录用户的表或试图,不包含其他用户授权的表或试图;
2、表或试图名一定要大写。