通过mysql的information_schema库来进行全库搜索字段所在表
-
mysql中查询一个字段具体是属于哪一个数据库的那一张表:用这条语句就能查询出来,其中 table_schema 是所在库, table_name 是所在表
-
select table_schema,table_name,column_name from information_schema.columns where column_name = 'pro_id' or column_name = 'pro_code'

浙公网安备 33010602011771号