Re: DELETE with JOIN

Поиск
Список
Период
Сортировка
От felix@crowfix.com
Тема Re: DELETE with JOIN
Дата
Msg-id 20080807191207.GA2259@crowfix.com
обсуждение исходный текст
Ответ на Re: DELETE with JOIN  (Frank Bax <fbax@sympatico.ca>)
Ответы Re: DELETE with JOIN  (Frank Bax <fbax@sympatico.ca>)
Список 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 по дате отправления:

Предыдущее
От: Frank Bax
Дата:
Сообщение: Re: DELETE with JOIN
Следующее
От: Tom Lane
Дата:
Сообщение: Re: DELETE with JOIN