Re: What is the syntax for UPDATE from one table to another?
От
Bruno Wolff III
Тема
Re: What is the syntax for UPDATE from one table to another?
Дата
Msg-id
20040312183206.GB7738@wolff.to
Ответ на
Список
Дерево обсуждения
What is the syntax for UPDATE from one table to another? pw <p.willis@telus.net>
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>
Re: What is the syntax for UPDATE from one table to another? Jeff <threshar@torgo.978.org>
On Fri, Mar 12, 2004 at 09:40:13 -0800, pw wrote: > > 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. If you check the documentation you will see that SET is supposed to be before FROM.
В списке pgsql-general по дате отправления