Re: reg:Query

From: "sandhya" <sandhyar(at)amiindia(dot)co(dot)in>
To: <andy(dot)shellam(at)mailnetwork(dot)co(dot)uk>
Cc: <pgsql-admin(at)postgresql(dot)org>, "Nabil Aziz Sawaya" <nabilsawaya(at)gmail(dot)com>
Subject: Re: reg:Query
Date: 2006-05-16 13:12:21
Message-ID: 03f701c678ea$5e1124a0$cd00000a@sandhyar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thank you.....
----- Original Message -----
From: Andy Shellam
To: 'sandhya'
Cc: pgsql-admin(at)postgresql(dot)org
Sent: Tuesday, May 16, 2006 6:26 PM
Subject: RE: [ADMIN] reg:Query

SELECT ... LIMIT 1

Will get the first row in the dataset. Then to fetch the next row, you can do SELECT .. LIMIT 1 OFFSET 1 (will get the 2nd record) and so on.

(replace ... with your conditions, LIMIT must come at the end of the query)

Andy

------------------------------------------------------------------------------

From: pgsql-admin-owner(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of sandhya
Sent: 16 May 2006 11:47 am
To: Postgres
Cc: sandhya
Subject: [ADMIN] reg:Query

Hi

Is there any query for possibility of getting only one row at a time in a group of records?

With distinct rows & Columns my query has to return only one record at a time with out any condition.Will it be possible?

Thank you,

Sandhya

!DSPAM:14,4469ca6434491997014324!

Browse pgsql-admin by date

  From Date Subject
Next Message Kouber Saparev 2006-05-16 13:16:55 Updatable view and default sequence values
Previous Message Andy Shellam 2006-05-16 13:05:57 FW: reg:Query