Re: enumerating rows
От | Kovacs Zoltan |
---|---|
Тема | Re: enumerating rows |
Дата | |
Msg-id | Pine.LNX.4.21.0104140909520.8176-100000@pc10.radnoti-szeged.sulinet.hu обсуждение исходный текст |
Ответ на | enumerating rows (Kovacs Zoltan <kovacsz@pc10.radnoti-szeged.sulinet.hu>) |
Список | 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 по дате отправления: