2007-10-23, 03:42 AM
Hi
UPDATE
FROM
INNER JOIN
Say me, than not is possible put a select into a update, the which is obvious, just I want test
SELECT Pais as MiPais FROM
INNER JOIN
ON CountryCode=Code UNION UPDATE
In this case, say me, I am having a problem with my sintax
What is the correct way to do it?
UPDATE
City
SET CountryName
= ( SELECT PaisFROM
City
INNER JOIN
Country
ON CountryCode = Code )Say me, than not is possible put a select into a update, the which is obvious, just I want test
SELECT Pais as MiPais FROM
City
INNER JOIN
Country
ON CountryCode=Code UNION UPDATE
City
SET CountryName
= MiPais;In this case, say me, I am having a problem with my sintax
What is the correct way to do it?