MySql 查询表字段数
SELECT COUNT(*) FROM information_schema.columns WHERE table_schema='test_cases' AND table_name='cases_send' ;
test_cases 为数据库名称
cases_send 为表名
列出表字段名称
SHOW COLUMNS FROM cases_send