GBase8a 集群查看表里有哪些列,某个列是否存在

GBase 8a数据库集群提供了元数据表information_shema.columns,获得指定表的列定义。也可以通过desc 方式查看列定义。

通过desc

  • 通过元数据表

select column_name,ordinal_position,is_nullable,data_type,character_maximum_length,numeric_precision from information_schema.columns where table_schema='testdb' and table_name='t'

其它元数据有关,请参考

GBase8a 集群查看库里有哪些视图

GBase8a 集群查看库里有哪些表,或某张表是否存在