asp下檢查表中是否存在某個(gè)字段(列)函數(shù)
更新時(shí)間:2008年03月06日 21:49:41 作者:
asp可以方便的檢查數(shù)據(jù)庫表中,是否存在這個(gè)字段
復(fù)制代碼 代碼如下:
Function CheckFields(FieldsName,TableName)
Flag=False
sql="select * from "&TableName
Set RS=Conn.Execute(sql)
for i = 0 to RS.Fields.Count - 1
if RS.Fields(i).Name=FieldsName then
Flag=True
Exit For
else
Flag=False
end if
Next
CheckFields=Flag
End Function
相關(guān)文章
ASP替換、保存遠(yuǎn)程圖片實(shí)現(xiàn)代碼
這篇文章主要分享了ASP替換、保存遠(yuǎn)程圖片的函數(shù)代碼,需要的朋友可以參考下2015-09-09aspupload文件重命名及上傳進(jìn)度條的解決方法附代碼
aspupload文件重命名及上傳進(jìn)度條的解決方法附代碼...2007-08-08實(shí)現(xiàn)純真IP txt轉(zhuǎn)mdb數(shù)據(jù)庫的方法
實(shí)現(xiàn)純真IP txt轉(zhuǎn)mdb數(shù)據(jù)庫的方法...2007-07-07Access數(shù)據(jù)庫中“所有記錄中均未找到搜索關(guān)鍵字”的解決方法
這個(gè)是Access一個(gè)天生不足的表現(xiàn),出現(xiàn)此錯(cuò)誤是因?yàn)槟愕腁ccess數(shù)據(jù)庫有錯(cuò)誤了。2008-08-08asp動(dòng)態(tài)include文件,方便多模板的實(shí)現(xiàn)
asp動(dòng)態(tài)include文件,方便多模板的實(shí)現(xiàn)...2007-08-08