selecting data from subquery in same order

Поиск
Список
Период
Сортировка
От mark
Тема selecting data from subquery in same order
Дата
Msg-id 82fa9e310808161711l7d1e2b88uc09006a2065a1247@mail.gmail.com
обсуждение исходный текст
Ответы Re: selecting data from subquery in same order  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Re: selecting data from subquery in same order  ("Dmitry Koterov" <dmitry@koterov.ru>)
Список pgsql-general
hi
if i execute this statement:

select * from users where id in (2341548, 2325251, 2333130, 2015421,
2073536, 2252374, 2273219, 2350850, 2367318, 2032977, 2032849, )

the order of rows obtained is random.

is there anyway i can get the rows in the same order as the ids in
subquery? or is there a different statement i can use?
thanks!

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

Предыдущее
От: Decibel!
Дата:
Сообщение: Re: Changing between ORDER BY DESC and ORDER BY ASC
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Confronting the maximum column limitation