How to use outer join in update

Поиск
Список
Период
Сортировка
От Andrus
Тема How to use outer join in update
Дата
Msg-id el9l1e$rh4$1@news.hub.org
обсуждение исходный текст
Ответы Re: How to use outer join in update  (Alban Hertroys <alban@magproductions.nl>)
Список pgsql-general
In my current DBMS I can use

create table t1 ( f1 int, f2 int );
create table t2 ( f3 int, f4 int );
update t1 set f1=t2.f3 from t1 left join t2 on  t1.f2=t2.f4


This does not work in Postgres.

How to convert this statement to Postgres 8.1 ?

Andrus.



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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: The relative stability of different procedural
Следующее
От: "Lenorovitz, Joel"
Дата:
Сообщение: Help with Update Rule on View - 2nd Attempt