sql="select * from aaa order by id desc" set rs=conn.execute(sql) rs.movenext Response.write(rs("id"))