Re: top?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: top?
Дата
Msg-id 20020103154644.J15005-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на top?  (Richard Rowell <rwrowell@bellsouth.net>)
Ответы Re: top?  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-sql
On Thu, 3 Jan 2002, Richard Rowell wrote:

> Just wondering if there was a "TOP" equivilant in Postgres?
> IE
> select top 1 * from froo
> (only returns 1 row)

select * from froo limit 1;

Usually you'll want to order as well so that you get a meaningfully
chosen row rather than whatever row happens to be scanned first.




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to union tables and have a field with UNIQUE constraint?
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: top?