源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

解析mysql与Oracle update的区别

  • 时间:2021-04-17 02:12 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:解析mysql与Oracle update的区别
[b]update :单表的更新不用说了,两者一样,主要说说多表的更新 [/b]
[u]复制代码[/u] 代码如下:
       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;
[u]复制代码[/u] 代码如下:
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......;
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部