select count(1) from information_schema.columns where table_schema='dbname' and table_name='tbname;
MySQL中怎么查询一张表的列数
最新推荐文章于 2022-07-22 21:40:38 发布
select count(1) from information_schema.columns where table_schema='dbname' and table_name='tbname;