欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp下檢查表中是否存在某個字段(列)函數(shù)

 更新時間:2008年03月06日 21:49:41   作者:  
asp可以方便的檢查數(shù)據(jù)庫表中,是否存在這個字段

復制代碼 代碼如下:

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)文章

最新評論