SQL Update with Subquery affects all the records

后端 未结 0 530
广开言路
广开言路 2021-02-07 12:58

UPDATE Items T1 SET t1.qty = t1.qty -(SELECT R.qty FROM TblReturn2 R WHERE (t1.Barcode = R.barcode))

it goes well, but all records got blank value except all the records

相关标签:
回答
  • 消灭零回复
提交回复
热议问题