From: Oliver Elphick <olly@lfix.co.uk>
To: Kovacs Zoltan <kovacsz@pc10.radnoti-szeged.sulinet.hu>
Cc: Koen Antonissen <Koen@Cee-Kay.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: enumerating rows
Date: Wed, 11 Apr 2001 21:08:26 +0100
Message-ID: <200104112008.f3BK8Q211350@linda.lfix.co.uk> (raw)
In-Reply-To: <kovacsz@pc10.radnoti-szeged.sulinet.hu> <Pine.LNX.4.21.0104111841120.3975-100000@pc10.radnoti-szeged.sulinet.hu>
Kovacs Zoltan wrote:
>> Here is a method which is fairly cumbersome, but will do what you want.
>> (Whether what you want is useful, is another matter. The row numbers
>> have no meaning except to delineate which row is printed after which; they
>> bear no relation to their order in the table.)
>Thanks, Oliver! Are you sure there is no other (more
>convenient) solution? I don't think this is a part of the SQL standard but
>it could be a PostgreSQL extension. Hm?
I believe Oracle has an inbuilt feature to do this; I don't know about
any other database. Nor do I know if any other databases can accommodate
user-defined functions.
But what is the actual use of this feature? Why do you need it?
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Is any one of you in trouble? He should pray. Is
anyone happy? Let him sing songs of praise. Is any one
of you sick? He should call the elders of the church
to pray over him...The prayer of a righteous man is
powerful and effective." James 5:13,14,16
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: olly@lfix.co.uk, kovacsz@pc10.radnoti-szeged.sulinet.hu, Koen@Cee-Kay.net
Subject: Re: enumerating rows
In-Reply-To: <200104112008.f3BK8Q211350@linda.lfix.co.uk>
References: <200104112008.f3BK8Q211350@linda.lfix.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox