17,082
社区成员
发帖
与我相关
我的任务
分享
update stock s set qty=qty+(select qty from person where s.per_no=per_no and per_no='02')
merge into stock s using person b on(s.per_no=b.per_no and b.per_no='02')
when matched then update set s.qty=s.qty+b.qty