当前位置:Gxlcms > 数据库问题 > 判断数据库表中是否存在某个字段

判断数据库表中是否存在某个字段

时间:2021-07-01 10:21:17 帮助过:10人阅读

if exists (select * from syscolumns where id=object_id(‘表名‘) and name=‘字段名‘)
	print ‘有‘
else
	print ‘无‘

 

判断数据库表中是否存在某个字段

标签:

人气教程排行