Re: top predicate

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: top predicate
Дата
Msg-id 4463A5B3.8090305@commandprompt.com
обсуждение исходный текст
Ответ на top predicate  ("Karen Hill" <karen_hill22@yahoo.com>)
Список pgsql-general
Karen Hill wrote:
> It seems PostgreSQL doesn't have a TOP Predicate.  Why is that?  Here
> is an example:
>
> SELECT TOP 10 products from sales;


Just use:

SELECT product from sales limit 10

OR

SELECT products from sales order by products desc limit 10;

Joshua D. Drake


>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>


--

            === The PostgreSQL Company: Command Prompt, Inc. ===
      Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
      Providing the most comprehensive  PostgreSQL solutions since 1997
                     http://www.commandprompt.com/



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

Предыдущее
От: Jan de Visser
Дата:
Сообщение: Re: top predicate
Следующее
От: Ben
Дата:
Сообщение: Re: top predicate