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

Поиск
Список
Период
Сортировка
От pw
Тема What is the syntax for UPDATE from one table to another?
Дата
Msg-id 4051F5FD.7040405@telus.net
обсуждение исходный текст
Ответы Re: What is the syntax for UPDATE from one table to another?  (Jeff <threshar@torgo.978.org>)
Re: What is the syntax for UPDATE from one table to another?  (Bruno Wolff III <bruno@wolff.to>)
Re: (THE_ANSWER) What is the syntax for UPDATE from one  (pw <p.willis@telus.net>)
Список 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 по дате отправления:

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