update一般是做单表操作的。但是有时候某些业务下update某个表的时候,用的数据可能是其他表的数据,这个时候可以使用jion方式

语句如下
update a  set count = a.count + b.count from a left join b on a.id=b.id

相关文章:

  • 2022-01-23
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-11-23
  • 2022-12-23
  • 2021-05-21
猜你喜欢
  • 2021-12-05
  • 2021-07-10
  • 2022-12-23
  • 2021-06-04
相关资源
相似解决方案