我正在尝试处理此更新查询

时间:2017-06-13 01:20:49

标签: sql

我正在尝试处理此更新查询,请帮忙 它无法正常工作

UPDATE Country set Country.CountryName = 'Swizz' 
from Country,Customers
where Customers.CustomerName='sameer' 

1 个答案:

答案 0 :(得分:1)

对于SQL Server而且有点整理

UPDATE C 
  set CountryName = 'Swizz' 
from Country C
Inner join Customers x 
  on x.country_code = C.country_code   --- missing component from OP
where x.CustomerName='sameer'