赞
踩
查询表字段名称、字段注释、字段类型:
select column_name,column_comment,data_type from information_schema.columns where table_schema='你的数据库名称' and table_name='你的表名'
查询dababase下所有表名及表注释:
SELECT TABLE_NAME,TABLE_COMMENT FROM information_schema.TABLES WHERE table_schema='database名';
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。