Re: Select query order

Поиск
Список
Период
Сортировка
Искать
От
Sean Davis
Тема
Re: Select query order
Дата
Msg-id
264855a01003240513j3db5f79bx1b700b512fed86db@mail.gmail.com
Ответ на
Select query order (Krithinarayanan Ganesh Kumar)
Список
Дерево обсуждения
Re: Select query order Jasen Betts <jasen@xnet.co.nz>
On Wed, Mar 24, 2010 at 8:06 AM, Krithinarayanan Ganesh Kumar
 wrote:
> Hi All,
>
> I am aware that Select query does not guarantee the order of the rows
> returned ( The rows are returned in whatever order the system finds fastest
> to produce).
>
> Is there any way to SELECT the rows in the same order of insertion ? The
> problem is there is no Primary Key in the table, I am having only a
> composite key. So I cannot ORDER BY pk also.

Unless you have stored something in the table that correlates with the
order of insertion, I don't know of a way to get at the insertion
order as this information is not tracked by Postgresql.

Sean
В списке pgsql-novice по дате отправления
От: Krithinarayanan Ganesh Kumar
Дата:
Сообщение: Select query order
От: A. Kretschmer
Дата:
Сообщение: Re: Select query order
FAQ