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

mysql中查询一个字段具体是属于哪一个数据库的那一张表:用这条语句就能查询出来,其中 table_schema 是所在库, table_name 是所在表
select table_schema,table_name from information_schema.columns where column_name = '字段名'

猜你喜欢

转载自blog.csdn.net/qq_42176520/article/details/82789030