| От | Tom Lane |
|---|---|
| Тема | Re: ordering problems ... |
| Дата | |
| Msg-id | 7558.1050414585@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: ordering problems ... (David Goodwin <dof@codepoets.co.uk>) |
| Список | pgsql-sql |
David Goodwin <dof@codepoets.co.uk> writes:
> I just discovered that if i put in a "order by qra.oid" it works ok.
That isn't going to work for long --- for example, as soon as you update
any row in question_response_answer, physical order will stop matching
OID order.
The real answer to your question is that SQL does not consider the
ordering of a table to be significant. If you want the rows of a query
result to be displayed in a particular order, you have to use ORDER BY.
Without that, the system is entitled to deliver the rows in any order
it finds convenient.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера