mysql的一些操作 查询mysql中某张表有多少列: SELECT COUNT(*) FROM information_schema. COLUMNS WHERE table_schema = '数据库名' AND table_name = '表名';