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

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

 
原文地址:https://www.cnblogs.com/djq-jone/p/13424958.html