MySQL-查表列数

select count(1) from information_schema.COLUMNS where TABLE_SCHEMA='$databaseName' and table_name = '$tableName'

  

posted @ 2019-11-04 14:17  stuka  阅读(1339)  评论(0编辑  收藏  举报