在数据库中查询某个字段存在哪些表中(sql语句)
select TABLE_NAME
from information_schema.`COLUMNS`
where TABLE_SCHEMA='数据库名'
and COLUMN_NAME='字段名'
在数据库中查询某个字段存在哪些表中(sql语句)
select TABLE_NAME
from information_schema.`COLUMNS`
where TABLE_SCHEMA='数据库名'
and COLUMN_NAME='字段名'