What is the syntax for UPDATE from one table to another? - Mailing list pgsql-general

Hello,

What is the proper syntax for updating a column inone table from
a column in another?

I have tried this:

UPDATE destination_table FROM source_table SET
destination_table.column_one = source_table.column_b WHERE constraint;

This fails, so I must have the syntax incorrect.

Thanks for any help,

Pete





pgsql-general by date:

Previous
From: Chris Travers
Date:
Subject: Re: Composite types in tables
Next
From: Reece Hart
Date:
Subject: Re: Question on Opteron performance