Hello all,
Why is that I'm getting a syntax error on the following SQL statement under sqlite?
Error reads:
SQL Error: near "SET": syntax error
UPDATE nova
SET Nome = (select Nome from assessores where nova.ID = assessores.ID),
SET Morada = (select Morada from assessores where nova.ID = assessores.ID),
SET Email = (select Email from assessores where nova.ID = assessores.ID),
SET TelfCasa = (select TelfCasa from assessores where nova.ID = assessores.ID),
SET TelfEmprego = (select TelfEmprego from assessores where nova.ID = assessores.ID),
SET Telemovel = (select Telemovel from assessores where nova.ID = assessores.ID),
SET Fax = (select Fax from assessores where nova.ID = assessores.ID)
WHERE EXISTS (select * from assessores where nova.ID = assessores.ID);
If I try to fully qualify the SET field names, the error becomes:
SQL Error: near ".": syntax error