mysql 查看某个库下面某个表的所有列字段, columnName

 

mysql 查看某个库下面某个表的所有列字段

select COLUMN_NAME as columnName from information_schema.COLUMNS where table_name = '{表名}' and table_schema = '{库名}';

 

posted @ 2018-06-05 18:30  我当道士那儿些年  阅读(812)  评论(0编辑  收藏  举报