日期:2014-05-16 浏览次数:21279 次
<%
set rs = server.createobject("adodb.recordset")
sql = "select * from pz where vision = 1 and status = 0 order by id desc"
rs.cursorlocation = 3 '使用客户端游标,可以使效率提高
rs.open sql,conn,0,1
jishu_ats = RS.RecordCount 'totalrec:总记录条数
%>
<%
set rs = server.createobject("adodb.recordset")
sql = "select * from pz where vision = 1 and status = 1 order by id desc"
rs.cursorlocation = 3 '使用客户端游标,可以使效率提高
rs.open sql,conn,0,1
jishu_bts = RS.RecordCount 'totalrec:总记录条数
%>
<%
set rs = server.createobject("adodb.recordset")
sql = "select * from pz where vision = 2 and status = 0 order by id desc"
rs.cursorlocation = 3 '使用客户端游标,可以使效率提高
rs.open sql,conn,0,1
jishu_atsxf = RS.RecordCount 'totalrec:总记录条数
%>
<%
set rs = server.createobject("adodb.recordset")
sql = "select * from pz where vision = 2 and status = 1 order by id desc"
rs.cursorlocation = 3 '使用客户端游标,可以使效率提高
rs.open sql,conn,0,1
jishu_btsxf = RS.RecordCount 'totalrec:总记录条数
%>
<%
set rs = server.createobject("adodb.recordset")
sql = "select * from pz where vision = 3 and status = 0 order by id desc"
rs.cursorlocation = 3 '使用客户端游标,可以使效率提高
rs.open sql,conn,0,1
jishu_atszj = RS.RecordCount 'totalrec:总记录条数
%>
<%
set rs = server.createobject("adodb.recordset")
sql = "select * from pz where vision = 3 and status = 1 order by id desc"
rs.cursorlocation = 3 '使用客户端游标,可以使效率提高
rs.open sql,conn,0,1
jishu_btszj = RS.RecordCount 'totalrec:总记录条数
%>
<%
set rs = server.createobject("adodb.recordset")
sql = "select * from pz where vision = 4 and status = 0 order by id desc"
rs.cursorlocation = 3 '使用客户端游标,可以使效率提高
rs.Open sql,conn,1,3