各位用户为了找寻关于解析mysql与Oracle update的区别的资料费劲了很多周折。这里教程网为您整理了关于解析mysql与Oracle update的区别的相关资料,仅供查阅,以下为您介绍关于解析mysql与Oracle update的区别的详细内容

update :单表的更新不用说了,两者一样,主要说说多表的更新

代码如下:

        Oracle> Oracle的多表更新要求比较严格,所以有的时候不是很好写,我们可以试试Oracle的游标         update (         select t.charger_id_ new_charger_id_          from t_cus_year_status t          left join t_customer_infos cus on cus.id_ = t.cus_id_         where....         ) n  set  n.new_charger_id_ =6;

 

代码如下:

mysql>        update t_cus_year_status t        left join t_customer_infos cus on cus.id_ = t.cus_id_       set t.charger_id_  =6       where......;