下面的是找的
如果时间字段是timestamp类型:
UPDATE TABLE SET COLUMN_START_TIME = to_timestamp(to_CHAR(sysdate,'YYYY-MM-DD')||to_char(COLUMN_START_TIME,'hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss');
如果时间字段是Date类型:
UPDATE TABLE SET COLUMN_START_TIME = to_date(to_CHAR(sysdate,'YYYY-MM-DD')||to_char(COLUMN_START_TIME,'hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss');
我的
<update id="authenticateAll" parameterType="java.util.List">
UPDATE PRO_CLIENT SET CONFIRM_FLAG = '0' ,UPDATE_DATE =to_timestamp(to_CHAR(sysdate,'YYYY-MM-DD')||to_char(sysdate,'hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
WHERE ID IN
<foreach item="item" index="index" collection="list"
open="(" separator="," close=")">
#{item}
</foreach>
AND CONFIRM_FLAG !='0'
</update>