ASP中循环嵌套,为什么只能查出一个值
fori=0tors.pagesize-1rs.opensql,Conn,1,1ifrs.boforrs.eofthenexitfordowhilenotrs1.eofi...
for i=0 to rs.pagesize-1
rs.open sql,Conn,1,1
if rs.bof or rs.eof then exit for
do while not rs1.eof
if rs1("weiboId")=rs("id") then
response.Write(""&rs1("weiboId")&"")
end if
rs1.movenext()
loop
rs.movenext()
next 展开
rs.open sql,Conn,1,1
if rs.bof or rs.eof then exit for
do while not rs1.eof
if rs1("weiboId")=rs("id") then
response.Write(""&rs1("weiboId")&"")
end if
rs1.movenext()
loop
rs.movenext()
next 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询