Re: row numbering

From: Mike Harding <mvh(at)ix(dot)netcom(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: josue <josue(at)lamundial(dot)hn>, pgsql-general(at)postgresql(dot)org
Subject: Re: row numbering
Date: 2005-02-26 00:27:44
Message-ID: 1109377664.86993.44.camel@bsd.mvh
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If you insert the results of your query into a table with a serial
column, the serial column will do what you want..

On Sat, 2005-02-26 at 01:10 +0100, Peter Eisentraut wrote:
> josue wrote:
> > is there a way return a column with the row number automatically
> > generated according the way the rows were processed by the query.
>
> No, but you can easily keep a counter in the client.
>
--
Mike Harding <mvh(at)ix(dot)netcom(dot)com>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Mayer 2005-02-26 00:48:02 Re: [PATCHES] A way to let Vacuum warn if FSM settings are low.
Previous Message Rick.Casey 2005-02-26 00:14:18 Re: basic trigger using OLD not working?