Re: reg:Query
От | Andy Shellam |
---|---|
Тема | Re: reg:Query |
Дата | |
Msg-id | !~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAAKaDNzHBbxlMnMLstafXD+sBAAAAAA==@mailnetwork.co.uk обсуждение исходный текст |
Ответ на | reg:Query ("sandhya" <sandhyar@amiindia.co.in>) |
Список | pgsql-admin |
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@postgresql.org [mailto:pgsql-admin-owner@postgresql.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!
В списке pgsql-admin по дате отправления: