Re: restircting rows

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: restircting rows
Дата
Msg-id 43FC2C63.8000006@archonet.com
обсуждение исходный текст
Ответ на restircting rows  ("padmanabha konkodi" <konkodi221@rediffmail.com>)
Список pgsql-sql
padmanabha konkodi wrote:
> 
> 
> hi all,
> 
> my query return 100 rows but if i am intrested only from 40-60 rows
> then how to restrict.
> 
> for example
> 
> select * from students (returns 100 rows).but i am intrested only
> rows from 40 to 60.

SELECT * FROM student ORDER BY something LIMIT 20 OFFSET 40;

Be aware that this will have to fetch 60 rows and throw the first 40 away.


--   Richard Huxton  Archonet Ltd


В списке pgsql-sql по дате отправления:

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: restircting rows
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: restircting rows