set rs = server.createobject("adodb.recordset")
sql = "select * from pz where datediff(m,sqdate,now())=0 and sales ='"+session("realname")+"' and vision = 1 order by id desc"
rs.cursorlocation = 3 '使用客户端游标,可以使效率提高
rs.Open sql,conn,3,3
jiesuan_ts_month = RS.RecordCount 'totalrec:总记录条数
浏览器提示:参数不足,期待是1
用response.write 写出来以后是
select * from pz where datediff(m,sqdate,now())=0 and sales ='刘洁' and vision = 1 order by id desc