Re: enumerating rows - Mailing list pgsql-sql

From Kovacs Zoltan
Subject Re: enumerating rows
Date
Msg-id Pine.LNX.4.21.0104140909520.8176-100000@pc10.radnoti-szeged.sulinet.hu
Whole thread Raw
In response to enumerating rows  (Kovacs Zoltan <kovacsz@pc10.radnoti-szeged.sulinet.hu>)
List pgsql-sql
> Try this....
> 
> CREATE SEQUENCE just_a_seq;
> Select nextval('just_a_seq') as row_no, * from pg_tables ;
> drop SEQUENCE just_a_seq;
Wow! Great idea! :-)

In fact I need row numbering in browsing and printing invoices. They
should be read on various platforms (Windows clients, generated HTML and
printed reports made by Windows) and it would be good to unify the
handling of enumeration. Of course, all clients can enumerate the result
somehow, but it's hard to maintain the separate codes.

Regards, Zoltan

--                         Kov\'acs, Zolt\'an                        kovacsz@pc10.radnoti-szeged.sulinet.hu
          http://www.math.u-szeged.hu/~kovzol                        ftp://pc10.radnoti-szeged.sulinet.hu/home/kovacsz
 



pgsql-sql by date:

Previous
From: Tod McQuillin
Date:
Subject: Re: nobody user can't nextval('phone_id_seq')
Next
From: "Oliver Elphick"
Date:
Subject: Re: Dropping users with no name