Re: increment row number function question

Поиск
Список
Период
Сортировка
От 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  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-general
Thanks for the reply.
Even if such a function existed, it would almost certainly not do what
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.
Shucks. I wanted to return a set with an ordered iterator determined by the ORDER BY. Could that be done?
regards, tom lane

Thanks again.
 


Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

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

Предыдущее
От: "Mario Soto"
Дата:
Сообщение: please how to unsuscribe to list
Следующее
От: "ck"
Дата:
Сообщение: How to force the parser to use index scan instead of sequential scan