Re: Add a ROWCOUNT to the output of a select. - Mailing list pgsql-sql

From Marcin Stępnicki
Subject Re: Add a ROWCOUNT to the output of a select.
Date
Msg-id 179149fe0805140148r49c2c5a3o5f944ce49b81049e@mail.gmail.com
Whole thread Raw
In response to Re: Add a ROWCOUNT to the output of a select.  (Harald Fuchs <hari.fuchs@googlemail.com>)
List pgsql-sql
On Wed, May 14, 2008 at 10:40 AM, Harald Fuchs
<hari.fuchs@googlemail.com> wrote:
> I think a sequence is much simpler:
>
> create temp sequence tmp;
> select nextval('tmp') as rownum,
>    contactdate
> from
>    myTable
> where
>    contactdate > '2007-06-30 23:59:59'
> order by
>    contactdate;

I used to do it this way myself, but the solution in my previous post
is really worth the trouble.


pgsql-sql by date:

Previous
From: Harald Fuchs
Date:
Subject: Re: Add a ROWCOUNT to the output of a select.
Next
From: "Robins Tharakan"
Date:
Subject: Re: Add a ROWCOUNT to the output of a select.