Re: BUG #4103: DELETE Syntax Error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Yu Jye Foo" <yu(dot)jyefoo(at)autodesk(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4103: DELETE Syntax Error
Date: 2008-04-11 17:47:26
Message-ID: 14046.1207936046@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Yu Jye Foo" <yu(dot)jyefoo(at)autodesk(dot)com> writes:
> 2008-04-11 09:01:02 PDT ERROR: syntax error at or near "LIMIT" at character
> 97
> 2008-04-11 09:01:02 PDT STATEMENT: DELETE FROM BASELINES WHERE file_id IN
> (SELECT file_id FROM files WHERE config_id = 1155042061) LIMIT 4001;

Uh, what's your point? DELETE does not have a LIMIT option.

Or maybe you meant to put the LIMIT on the SELECT? In that case it
should go inside the parentheses.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message alex 2008-04-11 18:44:49 BUG #4104: Uninstall/remove not working correctly
Previous Message Yu Jye Foo 2008-04-11 16:57:18 BUG #4103: DELETE Syntax Error