Re: update set x=(subquery on same table) - Mailing list pgsql-general

From scott.marlowe
Subject Re: update set x=(subquery on same table)
Date
Msg-id Pine.LNX.4.33.0402130925010.9707-100000@css120.ihs.com
Whole thread Raw
In response to Re: update set x=(subquery on same table)  (CSN <cool_screen_name90001@yahoo.com>)
List pgsql-general
On Fri, 13 Feb 2004, CSN wrote:

>
> That does the trick. I'd also like to figure out a way
> to set all parent_ids to NULL if no parent row can be
> found. I haven't been able to figure it out so far.

could a circular foreign key reference with one delete set null type thing
work?  then it'd be automagic


pgsql-general by date:

Previous
From: Zak McGregor
Date:
Subject: Re: Join 2 aggregate queries?
Next
From: "scott.marlowe"
Date:
Subject: Re: Quad Xeon vs. Dual Itanium