日期:2014-05-16 浏览次数:21568 次
<%
dim startday1,startday2,starthour,startsecond,endhour,endsecond
startday1=request.Form("startday1")
startday2=request.Form("startday2")
starthour=request.Form("starthour")
startsecond=request.Form("startsecond")
endhour=request.Form("endhour")
endsecond=request.Form("endsecond")
%>
sqlstr = "Select * from historyalarm where [startday] between # <% Response.Write(startday1) %><% %><% response.Write(starthour) %><% : %><% response.Write(startsecond) %> # and # <% response.Write(startday2) %><% %><% response.Write(endhour) %><% : %><% response.Write(endsecond) %> #"
startdate = startday1&" "&starthour&":"&startsecond
enddate = startday2&" "&endhour&":"&endsecond
sqlstr = "Select * from historyalarm where [startday] between # "&startdate &" # and # "&enddate &" #"