æ两个表AåBï¼åækeyåvalue两个å段ï¼å¦æBçkeyå¨Aä¸ä¹æï¼å°±æBçvalueæ¢ä¸ºAä¸å¯¹åºçvalue
update b set b.value=(select a.value from a where a.key=b.key) where b.id in(select b.id from b,a where b.key=a.key);
ä½æ¯å¦æ没æIDå段ï¼
update b set b.value=(select a.value from a where a.key=b.key) where b.key in(select b.key from b,a where b.key=a.key);
温馨提示:内容为网友见解,仅供参考