Update from another table, since PostgreSQL has no UPDATE JOIN syntax

suggest change

PostgreSQL does not accept MySQL-style UPDATE ... JOIN. Join the other table with FROM:

UPDATE <SCHEMA_NAME>.<TABLE_NAME_1> AS A
SET <COLUMN_1> = TRUE
FROM <SCHEMA_NAME>.<TABLE_NAME_2> AS B
WHERE
    A.<COLUMN_2> = B.<COLUMN_2> AND
    A.<COLUMN_3> = B.<COLUMN_3>;

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents