You need to specify what you want to set the destination field equal to. You should also need to specify a link between the tables if you are updating one with a value from another. Also, I am not sure what you mean by column.field: do you mean table.field? In your example it would read something like:
Code:
update table
set table.field = source_table.source_table_field
where source_table.source_table_field = destination_table.link_field
and field2 = 'value1'
and field2 = 'value2'
replacing the source and destination tables and fields with your own of course.
Hope this helps
Geraint
The lights are on but nobody's home, my elevator doesn't go to the top. I'm not playing with a full deck, I've lost my marbles. Barenaked Ladies - Crazy
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.