标签:
SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME IN (‘columnname‘) AND TABLE_SCHEMA=‘databasename‘;
Mysql 数据库中所有列名为某个值的 sql 语句
原文地址:http://www.cnblogs.com/zlfucku/p/5827477.html