MySQL查询一张表有多少个字段

SQL如下

select count(*) from information_schema.COLUMNS where TABLE_SCHEMA='数据库名' and table_name='表名'

  

posted @ 2019-06-06 10:35  Questions张  阅读(5227)  评论(0编辑  收藏  举报