mysql 查询表的字段数目

select column_name from information_schema.`COLUMNS` where TABLE_NAME ='tcm_head'

原文地址:https://www.cnblogs.com/gaara-zhang/p/9087860.html