//楼主的代码过于偷懒.试下下面的方法:
//方法一:
楼主的代码条件修改:
SELECT *
FROM xxxx
WHERE (日期 >= 'hrq' and 日期<='qrq')
and
(时间 >= 'hsj and
时间<='qsj')
ORDER BY 日期 DESC
//方法二:
试下between..
//--------------
SELECT *
FROM xxxx
WHERE (日期 between 'hrq' and 'qrq')
and
(时间 between 'hsj and
'qsj')
ORDER BY 日期 DESC
[[it] 本帖最后由 sunfishy 于 2008-11-26 18:03 编辑 [/it]]