GBase 8s
运维管理
文章

查询表comment

GBase社区管理员
发表于2024-01-30 16:35:4090次浏览1个评论

查询表注释:

select a.tabname,a.comments from syscomments a,systables b where a.tabname = b.tabname and b.tabid >= 99;

输出示例:

tabname   t
comments  表t comment

查询字段注释:

select a.* from SYSCOLCOMMENTS a,systables b where a.tabname = b.tabname and b.tabid >= 99;

输出示例:

tabname   t
colname   col1
comments  t.col1

评论

登录后才可以发表评论
崔哥发表于 5个月前
古木阴中系短篷,杖藜扶我过桥东。沾衣欲湿杏花雨,吹面不寒杨柳风。