pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Poole <richard.poole@vi.net>
To: pgsql-sql@postgresql.org
Subject: Re: Re: Use of the LIMIT clause ?
Date: Tue, 13 Mar 2001 15:07:52 +0000
Message-ID: <20010313150752.A13549@office.vi.net> (raw)
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>

On Mon, Mar 12, 2001 at 09:21:58PM -0500, Tom Lane wrote:
> 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)?

Yes, it does behave as documented.

> Should we consider changing ours if it is different?

I don't know that it's worth it... it seems to inconvenience some
people either way. I may soon be moving a moderately complex system
from MySQL to Postgres and it wouldn't be the end of my world if
I had to reverse all the LIMITs.

Richard



view thread (10+ messages)  latest in thread

Message-ID: <20010313150752.A13549@office.vi.net>
Permalink:  ../20010313150752.A13549@office.vi.net/
Also on:    postgresql.org/message-id/20010313150752.A13549@office.vi.net

 · 

reply

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: richard.poole@vi.net
  Subject: Re: Use of the LIMIT clause ?
  In-Reply-To: <20010313150752.A13549@office.vi.net>
  References: <3AADBFD7.D462E190@enseirb.fr> <7612.984439579@sss.pgh.pa.us> <3AAD785A.2DAEDCE@joystick.fr> <17374.984450118@sss.pgh.pa.us> <20010313150752.A13549@office.vi.net>

* 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