pastorandy
IS-IT--Management
Hiv
I have two tables and all I want to do is update the cust
with a value from the territory
The tables are related and have a foreign key.
Here's what I have thus far:
I just keep getting the error:
Any ideas?
I have two tables and all I want to do is update the cust
The tables are related and have a foreign key.
Here's what I have thus far:
Code:
UPDATE cust c, territory t
SET c.t_office_id = t.t_office_id
WHERE c.t_office_id = t.t_office_id
AND c.postcode1 = t.postcode1
I just keep getting the error:
Code:
You have an error in your SQL syntax near 'c, territory t SET c.t_office_id = t.t_office_id WHERE c.t_office_id = t.t_offic' at line 1
Any ideas?