用asp+oracle怎么不能查询一段时间的数据啊,用access的时候可以啊
sql ="SELECT ID,DOCUFWZH,DOUCTT,DOCUFWR,DOCUCLASS,DOCULV,DOCUDATE,DOCUDATELR From sms_Docu where DOCUDATELR>="&sday &"AND DOCUDATELR<=" &eday
sy=Request.form("SYear")
sm=Request.form("SMonth")
sd=Request.form("SDay")
ey=Request.form("EYear")
em=Request.form("EMonth")
ed=Request.form("EDay")
sday=sy&"-"&sm&"-"&sd
eday=ey&"-"&em&"-"&ed
写成这样也不行
sql ="SELECT ID,DOCUFWZH,DOUCTT,DOCUFWR,DOCUCLASS,DOCULV,DOCUDATE,DOCUDATELR From sms_Docu where DOCUDATELR between to_date('" & sday & "',’yyyy-mm-dd') and to_date('" & eday & "',’yyyy-mm-dd')"
求教高手
------解决方案--------------------
呵呵、说说咋解决的呀。