三表关联
A表:bh,mc
B表:bh,mc
C表:bh,mc
关系:a.mc=b.mc
a.bh=c.bh
我现在想把B表中的bh全部对应到c表中的bh
哪位大神有时间帮小弟解答下,急急急!!!!!!!!!!!
------解决方案--------------------update c set c.bh=b.bh from a a,b b,c c
where a.mc=b.mc and a.bh=c.bh
------解决方案--------------------
update c
set c.bh=b.bh
from a,b
where a.mc=b.mc and a.bh=c.bh