首页 >> 网页技术 > asp技术 >> 详细内容
网页技术
 
asp技术 >> 正文
asp判断字段为空
日期:2017/6/15 
if   isnull(rs.fields("字段"))   =   true   then     
      这个字段是null值   
  else   
      这个字段不为null   
  end   if 
----------------
   if   len(trim(rs("note")))<1   then   
      ds=""  
  else   
      ds=rs("note")   
  end   if   
---------------
   if   rs.fields("字段") is null   then     
      这个字段是null值   
  else   
      这个字段不为null   
  end   if