update T_R_UM_OB_CLOCK_LOG set C_CLOCK_DATE=to_date(to_char(C_CLOCK_DATE,'YYYY-MM-DD')||'08:30','YYYY-MM-DD:hh24:mi') where to_char(C_CLOCK_DATE,'hh24:mi')>='07:00' and to_char(C_CLOCK_DATE,'hh24:mi')<='08:09' where c_work_date=to_char('2013-05-21','YYYY-MM-DD')
分享到:
------解决方案--------------------
update T_R_UM_OB_CLOCK_LOG
set C_CLOCK_DATE = C_CLOCK_DATE + 1 / 72
where to_char(C_CLOCK_DATE, 'hh24:mi') >= '07:00'
and to_char(C_CLOCK_DATE, 'hh24:mi') <= '08:09'
and to_char(c_work_date, 'yyyy-mm-dd') = '2013-05-21';