Re: DELETE with JOIN - Mailing list pgsql-sql

From felix@crowfix.com
Subject Re: DELETE with JOIN
Date
Msg-id 20080807191207.GA2259@crowfix.com
Whole thread Raw
In response to Re: DELETE with JOIN  (Frank Bax <fbax@sympatico.ca>)
Responses Re: DELETE with JOIN  (Frank Bax <fbax@sympatico.ca>)
List pgsql-sql
On Thu, Aug 07, 2008 at 03:00:35PM -0400, Frank Bax wrote:

> Could you not achieve the same result with a LIMIT on subSELECT and reissue 
> the command until there is nothing to delete?

Oracle has some barbarous alternative to LIMIT.  I find myself
retching over Oracle almost as much as MySQL.

> If you're really desperate; is it possible to alter table 'a' to add column 
> b_id; populate it; delete your rows without a join; then drop the column?

I thought of something similar, but UPDATE has the same limitation as DELETE.

--            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.    Felix Finch: scarecrow repairman & rocket
surgeon/ felix@crowfix.com GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
 
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


pgsql-sql by date:

Previous
From: Frank Bax
Date:
Subject: Re: DELETE with JOIN
Next
From: Tom Lane
Date:
Subject: Re: DELETE with JOIN