asp判断字段为空

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
--------------

posted on 2010-04-12 20:41  开★SHY  阅读(427)  评论(0编辑  收藏  举报

导航