Re: delete using limit

From: CoL <col(at)mportal(dot)hu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: delete using limit
Date: 2004-03-18 20:46:30
Message-ID: c3d1m9$1tgh$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi,

loop wrote, On 3/18/2004 19:20:
> Hi,
> how can I use delete with a limit variable?
> DELETE FROM table WHERE field='x' LIMIT x

delete from table where field in (select field from table limit x);

C.

Browse pgsql-general by date

  From Date Subject
Next Message CSN 2004-03-18 20:54:17 phppgadmin: add unique index vs. add unique key
Previous Message Mike Mascari 2004-03-18 19:02:31 Re: Oddity with literal intervals