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