您的位置:首页 > 数据库 > Oracle

oracle 多表联合更新

2015-11-11 16:54 531 查看
搞了一下午的成果只有一条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');
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: