查询在一个数据库中某个字段存在于哪些表

select TABLE_NAME
from information_schema.`COLUMNS` 
where TABLE_SCHEMA='dbname'
and COLUMN_NAME='role_id'
原文地址:https://www.cnblogs.com/daizhuacai/p/2933924.html