Re: syntax for updating an aliased table

Поиск
Список
Период
Сортировка
От Andy Chambers
Тема Re: syntax for updating an aliased table
Дата
Msg-id BANLkTim=-OE4GAWJ_QstKDYse-mguJ6w0A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: syntax for updating an aliased table  (Rick Genter <rick.genter@gmail.com>)
Список pgsql-general
On Thu, May 26, 2011 at 1:40 PM, Rick Genter <rick.genter@gmail.com> wrote:
>
> The UPDATE statement when multiple tables are involved always drives me nuts.
> I think what you need to do is remove all of the "old." from the SET clause and use "triple." in the WHERE clause
insteadof "old." - and remove the old table alias from the UPDATE. 

This worked.  Thanks very much

--
Andy

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Is there any problem with pg_notify and memory consumption?
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: copy record?