mysql查找字段在哪个表中

 

select table_schema 数据库名称,table_name  表名 from information_schema.columns where column_name = 'comparison_approval_status'(要查询的列)

例:

  select table_schema ,table_name   from information_schema.columns where column_name = 'comparison_approval_status'

 

 

文章来源:https://www.cnblogs.com/shuilangyizu/p/8793339.html

posted @ 2019-03-07 10:43  zzzzzl  阅读(5459)  评论(1编辑  收藏  举报