From: Tom Lane <tgl@sss.pgh.pa.us>
To: Spy <spy@joystick.fr>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Use of the LIMIT clause ?
Date: Mon, 12 Mar 2001 21:21:58 -0500
Message-ID: <17374.984450118@sss.pgh.pa.us> (raw)
In-Reply-To: <3AAD785A.2DAEDCE@joystick.fr>
References: <3AADBFD7.D462E190@enseirb.fr>
<7612.984439579@sss.pgh.pa.us>
<3AAD785A.2DAEDCE@joystick.fr>
Spy <spy@joystick.fr> writes:
> Tom Lane a écrit :
>> Is that actually how MySQL interprets two parameters? We treat them
>> as count and offset respectively, which definition I thought was the
>> same as MySQL's.
> But MySQL's syntax is different, as found on
> http://www.mysql.com/doc/S/E/SELECT.html :
> "SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT]
> [SQL_BUFFER_RESULT]
> [...]
> [LIMIT [offset,] rows]"
That's annoying; looks like we do it backwards from MySQL. Can anyone
confirm that this is how MySQL behaves (maybe it's a typo on this
documentation page)?
Should we consider changing ours if it is different? Are there any
other RDBMSes that implement two-parameter LIMIT?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, spy@joystick.fr, pgsql-admin@postgresql.org
Subject: Re: Use of the LIMIT clause ?
In-Reply-To: <17374.984450118@sss.pgh.pa.us>
References: <3AADBFD7.D462E190@enseirb.fr> <7612.984439579@sss.pgh.pa.us> <3AAD785A.2DAEDCE@joystick.fr> <17374.984450118@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox