TIDB: 元数据查询指令
发布时间
阅读量:
阅读量
一、获取表描述
select table_name,table_comment from information_schema.TABLES where table_schema = '%s' and table_name in (%s)
二、获取视图DDL
SELECT * FROM information_schema.views WHERE TABLE_NAME = '%s' and TABLE_SCHEMA = '%s'
三、判断表是否存在sql
select table_name from information_schema.TABLES where table_name = '%s' and table_schema = '%s'
四、字段详情查询功能设计
select table_name,column_name,ordinal_position,column_default,EXTRA,is_nullable,data_type,column_comment,column_key,numeric_p
全部评论 (0)
还没有任何评论哟~
