Parse the difference between mysql and Oracle update


update: I don’t need to mention the single table update, but I want to talk about the multi-table update

      
Oracle> Oracle The multi - table update requirements are more strict, so sometimes it is not very easy to write, we can try Oracle The cursor
        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......;