sql语句判断一个表里是否存在某列

 if   col_length('表名',   '列名')   is   null  

print '不存在'

else

print '存在'

原文地址:https://www.cnblogs.com/saimisei/p/1278346.html