mysql数据库查询某个字段在哪张表中

SELECT * from information_schema.columns where   TABLE_SCHEMA='数据库名'  and   COLUMN_NAME='字段名'

猜你喜欢

转载自www.cnblogs.com/superming/p/12131581.html