What is the syntax for UPDATE from one table to another?

Поиск
Список
Период
Сортировка
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 по дате отправления:

Предыдущее
От: Chris Travers
Дата:
Сообщение: Re: Composite types in tables
Следующее
От: Reece Hart
Дата:
Сообщение: Re: Question on Opteron performance