第1个回答 2007-05-24
你在建表的时候,建立好这2个表之间的关系..我记得有3中选择...就是另外一个表的更新是否影响到和它关连的表.,
第2个回答 推荐于2017-09-24
update
(select A.bnum ,A.newqiantity,B.qiantity from A left join B on A.bnum=B.bnum) AS C
set C.newqiantity = C.qiantity
where C.bnum =XX本回答被提问者采纳
第3个回答 2007-05-24
update A set newqiantity =
(select qiantity from B where A.bnum = B.bnum)
第4个回答 2019-01-28
update a set a.newqiantity=b.qiantity FROM A a left join B b on a.bnum=b.bnum