select column_name,column_comment,data_type from information_schema.columns where table_name='你的表名'
PLUS:
查询dababase下所有表名及表注释
SELECT TABLE_NAME,TABLE_COMMENT FROM information_schema.TABLES WHERE table_schema='database名';
本文介绍如何使用SQL查询特定表的列名称、列注释及数据类型,并提供了查询整个数据库中所有表名及其注释的方法。
select column_name,column_comment,data_type from information_schema.columns where table_name='你的表名'
PLUS:
查询dababase下所有表名及表注释
SELECT TABLE_NAME,TABLE_COMMENT FROM information_schema.TABLES WHERE table_schema='database名';
1万+

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