搞了一下午的成果只有一条sql语句 谨记自己弱爆了的sql
update cdm_t2001 ct set ct.tobt = (select to_date(csm.new_value,'yyyy-mm-dd hh24:mi:ss') from cdm_send_message csm where ct.cdm_fli_id=csm.cdm_fli_id and csm.message_code = 'C0002' ) where exists (select 1 from cdm_send_message csm where ct.cdm_fli_id=csm.cdm_fli_id and csm.message_code = 'C0002');