stephengrenfell
Registered User.
- Local time
- Today, 21:11
- Joined
- Jul 1, 2009
- Messages
- 19
Hello,
I want to update several fields in table_a from table_b based on a text field match (where table_a.text = table_b.text).
Does anyone know if I can do this with the SQL UPDATE command ?.
I have tried using this :
UPDATE table_a
SET x = table_b.1, y = table_b.b, z = table_2.c
FROM table_a, table_b
WHERE xx = table_b.dd ;
but it does not like the FROM statement
Any help would be appreciated.
Thanks
I want to update several fields in table_a from table_b based on a text field match (where table_a.text = table_b.text).
Does anyone know if I can do this with the SQL UPDATE command ?.
I have tried using this :
UPDATE table_a
SET x = table_b.1, y = table_b.b, z = table_2.c
FROM table_a, table_b
WHERE xx = table_b.dd ;
but it does not like the FROM statement
Any help would be appreciated.
Thanks