MySQL-查表列数

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

  

猜你喜欢

转载自www.cnblogs.com/stuka/p/11791800.html