| От | Matthew Peter |
|---|---|
| Тема | Re: increment row number function question |
| Дата | |
| Msg-id | 20061007234700.99125.qmail@web35203.mail.mud.yahoo.com обсуждение |
| Ответ на | Re: increment row number function question (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: increment row number function question
|
| Список | pgsql-general |
Even if such a function existed, it would almost certainly not do whatShucks. I wanted to return a set with an ordered iterator determined by the ORDER BY. Could that be done?
you want in this query. Per SQL spec, the SELECT target list is
logically supposed to be evaluated before the ORDER BY and LIMIT steps, which means you'd get numbers associated with the physical ordering of the rows not their some_col ordering.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера