update A set A.字段1=(select B.字段2 from B where B.ID=A.ID)
where exists(select 1 from B where B.ID=A.ID)
但是要确保select B.字段2 from B where B.ID=A.ID只能抓到唯一的B.字段2
[/Quote]
哦..3Q 可是已经结贴了..给不了你分了..
不好意思额..
update A set A.字段1=(select B.字段2 from B where B.ID=A.ID)
where exists(select 1 from B where B.ID=A.ID)
但是要确保select B.字段2 from B where B.ID=A.ID只能抓到唯一的B.字段2