给你看个例子。
set rs1=conn.execute("select * from table")
set rs2=conn.execute("select count(*) from table")
dim i
i=0
do while not rs2.eof
i=i+1
if i=rs1(0) then response.write("111")
else response.write("222")
end if
rs1.movenext
loop
那就麻烦了,我只想加一条判断语句,不用输出:
set rs = server.CreateObject ("adodb.recordset")
sql = "select * from dw where dwname='"&request("dwname")&"'"
rs.Open sql,conn,1,1
if是最后一条 then
。。。
else
。。。
end if