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

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

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

猜你喜欢

转载自www.cnblogs.com/renfanzi/p/9141229.html