
如何获取oracle字段注释
展开全部
oracle
使用如下sql语句可以查询表字段的注释:
select
*
from
user_col_comments
t
where
1=1
and
t.comments
is
not
null
and
t.table_name
=
'表名'
需注意:
1、该语句仅查询当前登录用户的表或试图,不包含其他用户授权的表或试图;
2、表或试图名一定要大写。
使用如下sql语句可以查询表字段的注释:
select
*
from
user_col_comments
t
where
1=1
and
t.comments
is
not
null
and
t.table_name
=
'表名'
需注意:
1、该语句仅查询当前登录用户的表或试图,不包含其他用户授权的表或试图;
2、表或试图名一定要大写。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询