select count(*) from information_schema.COLUMNS where TABLE_SCHEMA='test' and table_name='ceshi' 'test' 那个是库名,你替换一下 'ceshi'那个是表名,你也替换你想查找的表名