我有两个表,需要使用EligibleServices表中的ServiceLocation信息更新ClientInfo
**Table: EligibleServices**
ChartNumber
-----------
1
2
3
ServiceLocation
---------------
Office1
Office2
Office3
**Table: ClientInfo**
Chartnumber
-----------
1
2
3
ServiceLocation
---------------
答案 0 :(得分:1)
您可以使用update
执行join
:
update clientinfo ci join
eligibleservices es
on ci.ChartNumber = es.ChartNumber
set ci.ServiceLocation = es.ServiceLocation;