table alias for update

Поиск
Список
Период
Сортировка
От hamann.w@t-online.de
Тема table alias for update
Дата
Msg-id wolfgang-1120325091653.A0228608@amadeus3.local
обсуждение исходный текст
Ответы Re: table alias for update  (Bosco Rama <postgres@boscorama.com>)
Список pgsql-general

is there a way to use a table alias for the target table in an UPDATE query?
I would like to avoid spelling out things like that in psql:

update myverylongtablename set col1 = r.col1repl from repltable r
 where myverylongtablename.id = r.id and myverylongtablename.col2 > 0

Regards
Wolfgang Hamann


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

Предыдущее
От: hamann.w@t-online.de
Дата:
Сообщение: can these queries be combined into one?
Следующее
От: Bosco Rama
Дата:
Сообщение: Re: table alias for update