Re: increment counter in VIEW

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: increment counter in VIEW
Дата
Msg-id 20060712120530.6501.qmail@web31802.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на increment counter in VIEW  (Oleg <evdakov@iwg.uka.de>)
Ответы Re: increment counter in VIEW  (Oleg <evdakov@iwg.uka.de>)
Список pgsql-novice
> Dear All,
> Does anybody know how to add increment counter column to VIEW? To get
> something like this
>
> cntrColumn | anotherCol
> ------------------------
> 1                 |  val1
> 2                 |  val2
> 3                 |  ..
> 4                 |
>
> The best if this counter will be executed together with sort to ensure
> that sertain record gets always the same Counter value.

I am not sure if generate_series is what you want.
http://www.postgresql.org/docs/8.1/interactive/functions-srf.html

Regards,
Richard Broersma Jr.

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

Предыдущее
От: Oleg
Дата:
Сообщение: increment counter in VIEW
Следующее
От: Oleg
Дата:
Сообщение: Re: increment counter in VIEW