如果你不嫌烦可以尝试以下方法
dim i
i=0
sql= select top 10 * from [表名] order by num desc
set rs=conn.execute(sql)
do while not rs.eof
i=i+1
response.write"当前第"&i&"条纪录="&rs(1)
if i>=10 then exit do
rs.movenext
loop
rs.close
set rs=nothing
如果你不嫌烦可以尝试以下方法
dim i
i=0
sql= select top 10 * from [表名] order by num desc
set rs=conn.execute(sql)
do while not rs.eof
i=i+1
response.write"当前第"&i&"条纪录="&rs(1)
if i>=10 ...