win10 朝鲜语输入法:在同一个ASP文件中,我两次用SELECT对数据库??

来源:百度文库 编辑:高校问答 时间:2024/05/02 10:01:51
在同一个ASP文件中,我两次用SELECT对数据库进行了查询,并建立了RS记录集,我想知道在第一次使用了SELECT后,(do while not rs.eof)指针指向哪了,我第次用SELECT(do while not rs.eof)进行查询,是否正确???

你建立一个rs啊
第一个
set rs1=conn.execute("select * from 表名")
do while not rs1.eof

rs1.movenext
loop
rs.close

第二个
set rs=conn.execute("select * from 表名")
do while not rs.eof

rs.movenext
loop
rs.close

你可以建立两个rs啊
第一个
set rs1=conn.execute("select * from 表名")
do while not rs1.eof

rs1.movenext
loop

第二个
set rs2=conn.execute("select * from 表名")
do while not rs2.eof

rs2.movenext
loop

movenext向后移动一条记录 一直循环到尾部