Negative offsets

From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Negative offsets
Date: 2005-12-12 10:25:18
Message-ID: 20051212102518.58747.qmail@web52912.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I was playing around with negative offsets:

select * from table1 order by col1 offset -5 limit 25;
select * from table1 order by col1 offset -25 limit
25;
select * from table1 order by col1 offset -250 limit
25;

They all return the same resultset (offset 0). Is
there even any point in allowing negative offsets -
such as maybe someday they'll offset backwards?

thanks
csn

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bernd Helmle 2005-12-12 10:46:24 Re: Free Pascal and Postgresql Functions, Possible?
Previous Message Martijn van Oosterhout 2005-12-12 10:16:19 Re: Free Pascal and Postgresql Functions, Possible?