mysql查询数据库中是否存在某个字段

select table_name from information_schema.columns where table_schema = '库名' and column_name='字段名';

 

 
posted @ 2020-08-03 10:39  远启  阅读(7343)  评论(0编辑  收藏  举报