Re: Get a row by it's number - Mailing list pgsql-novice

From Phil Meadway
Subject Re: Get a row by it's number
Date
Msg-id 3976DBA4.E702D8A9@esmltd.co.uk
Whole thread Raw
In response to Get a row by it's number  (Boszormenyi Laszlo <gcs@jupiter.hlab.uni-miskolc.hu>)
Responses Get a row by it's number from (re)select
List pgsql-novice
By definition, relation database tables are unordered. This is because the
storage characteristics can change (say from ISAM to BTREE or HASH indexing)
without affecting the data content.  Do you want to retrieve the nth row from
a select ... order by statement? Or are you looking for the nth row added? Nth
row added can be achieved if you use an incrementing sequence counter when
adding.

Boszormenyi Laszlo wrote:

> Hello!
>
>  Is there any way to execute a select, and get only a specified row (let's
> say the third one)?
>
> Thanks in advance,
>         Laszlo Boszormenyi

--
Phil Meadway                          Tel.: +(44) 1444 892 274
Managing Director                     philip.meadway@esmltd.co.uk
Enterprise Systems Management Limited www.esmltd.co.uk


Attachment

pgsql-novice by date:

Previous
From: Boszormenyi Laszlo
Date:
Subject: Get a row by it's number
Next
From: Andrew McMillan
Date:
Subject: Re: Get a row by it's number