| От | Doug McNaught |
|---|---|
| Тема | Re: 7.3.4 and 7.4 ORDER in queries |
| Дата | |
| Msg-id | 87u14p7jji.fsf@asmodeus.mcnaught.org обсуждение исходный текст |
| Ответ на | 7.3.4 and 7.4 ORDER in queries (javier garcia - CEBAS <rn001@cebas.csic.es>) |
| Список | pgsql-general |
javier garcia - CEBAS <rn001@cebas.csic.es> writes: > Hi, > I'm not an expert, not by far. > I've just installed postgres7.4 and have realized tat the order of rows in > queries in different to that in 7.3.4. It seems that previously it was more > logic, ordering by the first column, then by the second,... by default. > At least this is so in a couple of queries I have. And now I have to > explicitly say the order I want. > > Could someone just tell me why is this so? Unless you specify ORDER BY, the order of matching rows returned by a query is completely up to the server. So it's not suprising that the ordering changed. If you depend on order, always use ORDER BY. -Doug
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера