string(21) "{"docs":[],"count":0}" Mysql 查询表字段数量 - 爱码网
yangjinwang

 

select count(*) from information_schema.`COLUMNS`
     where TABLE_SCHEMA=\'dbName\'   -- 数据库名
     and TABLE_NAME=\'tablename\';    -- 表名

 

分类:

技术点:

相关文章: