Re: BUG #4103: DELETE Syntax Error - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4103: DELETE Syntax Error
Date
Msg-id 14046.1207936046@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4103: DELETE Syntax Error  ("Yu Jye Foo" <yu.jyefoo@autodesk.com>)
List pgsql-bugs
"Yu Jye Foo" <yu.jyefoo@autodesk.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

pgsql-bugs by date:

Previous
From: "Yu Jye Foo"
Date:
Subject: BUG #4103: DELETE Syntax Error
Next
From: "alex"
Date:
Subject: BUG #4104: Uninstall/remove not working correctly