<% set rs=server.createobject("adodb.recordset") rs.open "select * from small_class where big_classid=145",conn,1,1 if rs.eof and rs.bof then response.write "请先添加产品大类。" response.end else %> do while not rs.eof 相当于 while(rs.next()) {
} Do While Not rs.eof RS("NAME") rs.movenext Loop 可以这样来实现循环的哦!