日期:2014-05-17 浏览次数:20922 次
select * from t_order t where t.pay_date > to_date(to_char(t.order_date+1,'yyyymmdd')
------解决方案--------------------
' 18:00:00','yyyymmdd hh:24:mi:ss')
select *
from t_order t
where t.pay_date >
(to_date(to_char(t.order_date / (1000 * 60 * 60 * 24) + 1 +
to_date('1970-01-01 08:00:00',
'YYYY-MM-DD HH:MI:SS'),
'YYYY-MM-DD')
------解决方案--------------------
' 18:00:00',
'YYYY-MM-DD HH24:MI:SS') -
to_date('1970-01-01 08:00:00', 'YYYY-MM-DD HH:MI:SS')) * 24 * 60 * 60 * 1000