如何获取数据库中表、列的comment备注信息?
warning:
这篇文章距离上次修改已过1649天,其中的内容可能已经有所变动。
GBase支持表及列设定comment备注信息,也支持这些信息的查询。
系统表information_schema.columns
、information_schema.tables
分别记录了列、表的comment信息。
查看方法:
- 通过
show create table
方式获取表的创建语句,查找comment信息; - 查询
information_schema.columns
、information_schema.tables
系统表,获取comment信息。