请问ASP中如何判断记录集为空

来源:互联网 发布:算法设计与分析分治法 编辑:程序博客网 时间:2024/05/29 19:04

请问ASP中如何判断记录集为空

 if 判断记录集为空 then   
    记录集为空时,执行的代码块
else   
     记录集为空时,执行的代码块
end if 

1、if rs.eof then
2、if rs.bof then
3、if rs.eof and rs.bof then
4、if rs.eof or rs.bof then
5、if rs.recordcount<0 then
6、if rs.recordcount<>0 then
以上那种判断是对的,还是都不对,还是……

还有就是:如何判断记录集不为空

0 0
原创粉丝点击