I'm trying to make an update from a database to another with conditions :
UPDATE table1
SET field1 = db2.field1, field2 = db2.field2...
FROM table1@database2 AS db2
WHERE db2.fieldaaa=table1.fieldaaa
AND db2.fieldbbb=table1.fieldbbb
Also tried with :
SET table1.field1 = db2.field1, table1.field2 = db2.field2...
this is my error message : 00933. 00000 - "SQL command not properly ended"
Can someone help me please ?