From: Paul <magamos@mail.ru>
To: pgsql-sql@postgresql.org
Subject: Re: Line Numbering in SELRCT Output
Date: Sun, 10 Mar 2002 20:33:01 +0500
Message-ID: <a6fu9s$2t5h$1@jupiter.hub.org> (raw)
References: <a6e70l$2o5p$1@jupiter.hub.org>
CREATE SEQUENCE seq1;
SELECT nextval('seq1'), amname FROM pg_am;
DROP SEQUENCE seq1;
"Hubert Palme" <hubert.palme@web.de> wrote in message
news:a6e70l$2o5p$1@jupiter.hub.org...
> Hi,
>
> how can I get line numbers in the output of a select statement, e.g.
>
> No. | Name | ...
> -----+------------------+-------
> 1 | Meyer | ...
> 2 | Miller | ...
> 3 | Mueller | ...
> 4 | Smith | ...
>
> Thanks in advance,
> --
> Hubert Palme Am Walde 1
> 42119 Wuppertal
> <hubert.palme@web.de>
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: magamos@mail.ru
Subject: Re: Line Numbering in SELRCT Output
In-Reply-To: <a6fu9s$2t5h$1@jupiter.hub.org>
* 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