MYSQL 查询数据库包含某个字段的所有table
SELECT DISTINCT TABLE_NAME FROM information_schema.COLUMNS WHERE COLUMN_NAME = 'column_name' AND TABLE_SCHEMA='dbname'
MYSQL 查询数据库包含某个字段的所有table
SELECT DISTINCT TABLE_NAME FROM information_schema.COLUMNS WHERE COLUMN_NAME = 'column_name' AND TABLE_SCHEMA='dbname'