查询所有空表:
select TABLE_NAME from information_schema.TABLES where TABLE_SCHEMA ='数据库名称' and TABLE_ROWS = 0;
查询所有非空表:
select TABLE_NAME from information_schema.TABLES where TABLE_SCHEMA ='数据库名称' and TABLE_ROWS >0;
查询当前数据库包含某字段的所有表:
SELECT DISTINCT TABLE_NAME FROM information_schema.COLUMNS WHERE COLUMN_NAME = '字段名称' AND TABLE_SCHEMA='数据库名称';