Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EC13747734F for ; Thu, 7 Nov 2002 11:03:21 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 9DEA1476D65 for ; Thu, 7 Nov 2002 10:55:44 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id gA7FthA15441; Thu, 7 Nov 2002 10:55:43 -0500 (EST) From: Bruce Momjian Message-Id: <200211071555.gA7FthA15441@candle.pha.pa.us> Subject: Re: Documentation bug report for LIMIT In-Reply-To: <3DC89D1B.2010208@netscape.net> To: jc@mega-bucks.co.jp Date: Thu, 7 Nov 2002 10:55:43 -0500 (EST) Cc: pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/9 X-Sequence-Number: 1533 Interesting you picked that up. The comma for LIMIT was supported in 7.2.X only for backward compatibility, and was mentioned in the release notes. It is _not_ supported in 7.3 anymore, where the separate LIMIT/OFFSET clauses are the only supported syntax. --------------------------------------------------------------------------- Jean-Christian Imbeault wrote: > In > http://www6.jp.postgresql.org/users-lounge/docs/7.2/postgres/queries-limit.html > > it is stated that the syntax is: > > SELECT select_list > FROM table_expression > [LIMIT { number | ALL }] [OFFSET number] > > This following query is valid even though the syntax is wrong: > > select id from members order by id limit 5, 6 > > If this "alternative" syntax is acceptable could you add this > alternative syntax to the docs? Else, the parser needs to throw an error? > > SELECT select_list > FROM table_expression > [LIMIT { number | ALL }] [, [OFFSET] number] > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073