Re: Controlling Reuslts with Limit

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Controlling Reuslts with Limit
Дата
Msg-id 200102232118.QAA28623@candle.pha.pa.us
обсуждение исходный текст
Ответ на Controlling Reuslts with Limit  (Najm Hashmi <najm@mondo-live.com>)
Список pgsql-sql
> Hi,
>  I was reading through Bruce's on line . I found follwing bit unclear...
> 
> "Notice that each query uses ORDER BY . Although this clause is not required,
> LIMIT without ORDER BY returns random rows from the query, which would be
> useless. "

It means there is no guarantee which rows will be returned.  You may get
the rows you want, or you may not.  Without the ORDER BY, the backend
can return any five rows it wishes.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Jie Liang
Дата:
Сообщение: Re: Need your help
Следующее
От: "Bryan White"
Дата:
Сообщение: Re: Controlling Reuslts with Limit