use information_schema;
select column_name,COLUMN_COMMENT,DATA_TYPE
from information_schema.columns where table_schema ='init(schema的名字)'
and table_name = 't_bc_belongperson(表名)';
select column_name,COLUMN_COMMENT,DATA_TYPE
from information_schema.columns where table_schema ='init(schema的名字)'
and table_name = 't_bc_belongperson(表名)';
本文介绍如何使用SQL查询语句查询特定数据库和表的详细字段信息,包括字段名称、注释和数据类型,以实现数据管理与分析。
1万+

被折叠的 条评论
为什么被折叠?



