mysql的一些操作

查询mysql中某张表有多少列:

SELECT

COUNT(*)

FROM

information_schema. COLUMNS

WHERE

table_schema = '数据库名'

AND table_name = '表名';
原文地址:https://www.cnblogs.com/wang666/p/8953698.html