mysql -- 查询某个字段在哪个数据库哪个表
2019-07-25 本文已影响0人
数据工程师从入门到放弃
mysql中查询一个字段具体是属于哪一个数据库的那一张表:用这条语句就能查询出来,其中 table_schema 是所在库, table_name 是所在表
select table_schema,table_name from information_schema.columns where column_name = '字段名'
mysql中查询一个字段具体是属于哪一个数据库的那一张表:用这条语句就能查询出来,其中 table_schema 是所在库, table_name 是所在表
select table_schema,table_name from information_schema.columns where column_name = '字段名'