Mysql按照设计顺序获得某个表的字段名称,字段类型,字段描述!!!!!

编写sql语句

select column_name,data_type ,column_comment
from information_schema.columns  where table_name='查询表名称' and table_schema='数据库名称' order By ORDINAL_POSITION

完成!!!!

猜你喜欢

转载自www.cnblogs.com/hekang-14/p/11223951.html