for i=1 to rs.recordcount //从表中第一条到最后一条记录开始循环
if rs.eof then exit for //如果执行完最后一条则退出for语句
response.write("xxoo") //输出内容
rs.movenext //记录集循环
next //for语句循环
rs.close //执行完for循环后关闭记录集
set rs=nothing //设置记录集为空释放资源
最后,谢谢总结上面代码的兄弟!
for i=1 to rs.recordcount //从表中第一条到最后一条记录开始循环
if rs.eof then exit for //如果执行完最后一条则退出for语句
response.write("xxoo") //输出内容
rs.movenext //记录集循环
next //for语句循环
rs.close //执行完for循环后关闭记录集
set rs=nothing //设置记录集为空释放资源
已有人对此文发表了评论