通过mysql的information_schema库来进行全库搜索字段所在表

  1. mysql中查询一个字段具体是属于哪一个数据库的那一张表:用这条语句就能查询出来,其中 table_schema 是所在库, table_name 是所在表
  2.  select table_schema,table_name,column_name from information_schema.columns where column_name = 'pro_id' or column_name = 'pro_code'
posted @ 2019-08-09 09:53  星云惊蛰  阅读(225)  评论(0)    收藏  举报