SQL如下
select count(*) from information_schema.COLUMNS where TABLE_SCHEMA='数据库名' and table_name='表名'
SQL如下
select count(*) from information_schema.COLUMNS where TABLE_SCHEMA='数据库名' and table_name='表名'
转载于:https://www.cnblogs.com/QuestionsZhang/p/10983596.html