为了与旧版程式相容,并自动判断资料库表单及栏位个数以符合最新版要求
select count(name) from syscolumns where id=(select id from sysobjects where name='tablename') and name='fieldname'
若回应=0则fieldname不存在
若回应=1则fieldname已存在
为了与旧版程式相容,并自动判断资料库表单及栏位个数以符合最新版要求
select count(name) from syscolumns where id=(select id from sysobjects where name='tablename') and name='fieldname'
若回应=0则fieldname不存在
若回应=1则fieldname已存在