日期:2014-05-17 浏览次数:20778 次
with t as
(select level - 1 n
from dual
connect by level <=
(select (to_date('2013-3-14 8:00:00', 'yyyy-mm-dd hh24:mi:ss') -
to_date('2013-3-13 8:00:00', 'yyyy-mm-dd hh24:mi:ss')) * 24 + 1
from dual))
select n / 24 + to_date('2013-3-13 8:00:00', 'yyyy-mm-dd hh24:mi:ss') from t