List:General Discussion« Previous MessageNext Message »
From:Harald Fuchs Date:May 10 2005 9:37am
Subject: Re: SELECT Row Numbers?
View as plain text  
In article <1115681350.427ff24647102@stripped>,
mfatene@stripped writes:

> hi,
> your need is:
> select * from temp LIMIT 3,4;
> -- 3 because you have to take the fourth and 4 because dist=3+1

This does not make sense.  A SELECT without an ORDER BY returns the
rows in some undefined order.  If you use "LIMIT 3,4" without ORDER BY, you
get four rows out of an unordered set, so it's virtually identical to
"LIMIT 4".  As long as the original poster doesn't say what ordering
he wants, there's no way to tell him a solution.

Thread
SELECT Row Numbers?Chris10 May
  • Re: SELECT Row Numbers?mfatene10 May
    • Re: SELECT Row Numbers?Chris10 May
  • Re: SELECT Row Numbers?Harald Fuchs10 May
    • Re: SELECT Row Numbers?Marco Neves10 May
    • Re: SELECT Row Numbers?Chris10 May
      • Re: SELECT Row Numbers?SGreen10 May
        • Re: SELECT Row Numbers?Chris10 May
  • Re: SELECT Row Numbers?Rhino10 May
    • Re: SELECT Row Numbers?mfatene10 May
  • Re: SELECT Row Numbers?Harald Fuchs10 May
    • Re: SELECT Row Numbers?Alec.Cawley10 May
    • Re: SELECT Row Numbers?Harald Fuchs10 May
      • Re: SELECT Row Numbers?Eric Bergen10 May