请诸位给看一下,这个sql语句应该如何改?
pid1=request.cookies("pid")Set rs1 =server.CreateObject("adodb.recordset")
itemp=DateSerial(Year(date), month(date), day(date)-5)
itemp=DateValue(itemp)
sql1="Select ltxt from wlog Where pid='"&pid1"'and ldate Between #"&date&"# And #"&itemp&"# "