get certain # of recs

Поиск
Список
Период
Сортировка
От Mike S. Nowostawsky
Тема get certain # of recs
Дата
Msg-id C_eo7.29408$2r.2992264@news20.bellglobal.com
обсуждение исходный текст
Ответы Re: get certain # of recs  (Patrik Kudo <kudo@partitur.se>)
Re: get certain # of recs  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: get certain # of recs  (Jason Earl <jdearl@yahoo.com>)
Re: get certain # of recs  (Philip Hallstrom <philip@adhesivemedia.com>)
Список pgsql-general
How can one select only a certain number of records in Postgres?

In other SQL langs we can use, say, for the first 20 recs:

select  * from tablename where rownum < 21;

WHAT should 'rownum' be to make this select work... OR is there a diff
syntax?

Thx,
--
=============================================
 Mike S. Nowostawsky:
 Email: mikenowo@sympatico.ca, mikenowo@yahoo.ca
 Home Page: http://www3.sympatico.ca/mikenowo/
 Lachine (Montreal), Quebec, Canada



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

Предыдущее
От: "Matthew O. Persico"
Дата:
Сообщение: Re: General database programming question
Следующее
От: "Emmanuel SARACCO"
Дата:
Сообщение: function::plpgsql::returning resultset