第1个回答 2013-03-20
update A set A.address_ID=B.addressname from A inner join B on A.address_ID = B.address_ID
第2个回答 2013-03-15
sqlserver:
update A set A.address_ID=B.addressname from B where A.address_ID=B.address_ID
不过你的A表中这个ID值要是字符型才可以啊
第3个回答 2017-07-27
update A表
set address_ID =
(
select address_ID
from B表
where A表.addressname = B表.addressname
)
第4个回答 2013-03-15
update 最基本语句……