Re: increment counter in VIEW - Mailing list pgsql-novice

From Richard Broersma Jr
Subject Re: increment counter in VIEW
Date
Msg-id 20060712120530.6501.qmail@web31802.mail.mud.yahoo.com
Whole thread Raw
In response to increment counter in VIEW  (Oleg <evdakov@iwg.uka.de>)
Responses Re: increment counter in VIEW
List 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 by date:

Previous
From: Oleg
Date:
Subject: increment counter in VIEW
Next
From: Oleg
Date:
Subject: Re: increment counter in VIEW