帮忙看看这个SQL语句的错误~~~~~~~~先谢谢了!
SQL字段类型是datetime型,表的字段是submit_time我在前台提供了时间段查询,但页面显示错误:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
/efy/delator/admin/sch.asp, 第 61 行---------这个行是:
zrs.open"SELECT * FROM informations where jbbm='"&jbbm&"' and xianshi='否' and submit_time between #date1# and #date2# ORDER BY submit_time desc ",zcon,1,1
我在前台是这样得到的时间串实现的:
jbbm = session("jbbm")
date1 = request.Form("y1")&"-"&request.Form("y2")&"-"&request.Form("y3")
date2 = request.Form("y3")&"-"&request.Form("y4")&"-"&request.Form("y5")
if jbbm <> "" then
zrs.open"SELECT * FROM informations where jbbm='"&jbbm&"' and xianshi='否' and submit_time between #date1# and #date2# ORDER BY submit_time desc ",zcon,1,1
帮忙分析错误,请改正