Re: using a sequence as the functional equivalent to Oracle rownum - Mailing list pgsql-general

From Tom Lane
Subject Re: using a sequence as the functional equivalent to Oracle rownum
Date
Msg-id 6154.1164746761@sss.pgh.pa.us
Whole thread Raw
In response to using a sequence as the functional equivalent to Oracle rownum  ("Wm.A.Stafford" <stafford@marine.rutgers.edu>)
List pgsql-general
"Wm.A.Stafford" <stafford@marine.rutgers.edu> writes:
> ... is there a standard PostgreSQL way to select a
> 'block' of rows from a result set based on row number?

LIMIT/OFFSET might be what you are looking for --- it's certainly far
less klugy than a temporary sequence.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: backend crash following load command
Next
From: "Merlin Moncure"
Date:
Subject: Re: Only MONO/WinForms is a way to go