建站常识

asp 字段判断为空

发布时间 | 2024/7/7 21:42:42  点击 | 

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

相关信息