W
why_119
Unregistered / Unconfirmed
GUEST, unregistred user!
t1="#"&FormatDateTime(Now(),2) & " 13:30:10#"
t2="#"&FormatDateTime(Now()-1,2) & " 15:30:10#"
Set rs=Server.CreateObject("Adodb.RecordSet"
sql="select * from dj where datem between '"&t2&"' and '"&t1&"'"用变量就不行.
'sql="select * from dj where datem between #2007-11-20 15:30:10# and #2007-11-21 13:30:10#"这样写就可以
rs.Open sql,conn,1,1
asp的assecc
不知应该如何写呢
t2="#"&FormatDateTime(Now()-1,2) & " 15:30:10#"
Set rs=Server.CreateObject("Adodb.RecordSet"
sql="select * from dj where datem between '"&t2&"' and '"&t1&"'"用变量就不行.
'sql="select * from dj where datem between #2007-11-20 15:30:10# and #2007-11-21 13:30:10#"这样写就可以
rs.Open sql,conn,1,1
asp的assecc
不知应该如何写呢