Re: 3 tables join update

From: rihad <rihad(at)mail(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: 3 tables join update
Date: 2007-09-30 08:36:02
Message-ID: 46FF5FF2.8060507@mail.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard Broersma Jr wrote:
> --- rihad <rihad(at)mail(dot)ru> wrote:
>> UPDATE Foo foo
>> SET foo.baz_id=baz.id
>> FROM Baz baz LEFT JOIN Bar bar ON (foo.bar_id=bar.id)
>> WHERE bar.id IS NULL;
>
> This query cannot work.

I know. So how do I do it efficiently?

Thanks.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message rihad 2007-09-30 09:01:30 Re: 3 tables join update
Previous Message CN 2007-09-30 03:55:00 Re: Please change default characterset for database cluster