[求助]按日期检索的语句,总是出错
dw_1.setfilter("djrq>='+date(em_1.text)+' and djrq<='+date(em_2.text)+'")
dw_1.filter()
出错提示是:TYPES OF EXPRESSIONS MUST MATCH.
但是
date ls_dtstart,ls_dtend
ls_dtstart=date(em_1.text)
ls_dtend=date(em_2.text)
SELECT * FROM CLGL_ZC a WHERE a.djrq>=:ls_dtstart and a.djrq<=:ls_dtend
却能执行到正确结果