From: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-admin@postgresql.org
Subject: Re: Print line?
Date: Wed, 23 Oct 2002 14:08:30 -0400
Message-ID: <ap5si2$1idu$1@news.hub.org> (raw)
References: <c1e48b51.0210220946.37c05beb@posting.google.com>
On Tue, 22 Oct 2002 13:46:37 -0400, Markus Dehmann wrote:
> Hi,
>
> is there an SQL command that just prints a line? I want to do sth like:
>
> -- SQL query
> print "Now displaying cities...";
> SELECT * from cities;
Try \qecho:
\qecho Now displaying cities
SELECT * FROM cities;
Otherwise you could also do:
\t
SELECT 'Now displaying cities...';
\t
SELECT * FROM cities;
--
Jeff Boes vox 616.226.9550 ext 24
Database Engineer fax 616.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise
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-admin@postgresql.org
Cc: jboes@nexcerpt.com
Subject: Re: Print line?
In-Reply-To: <ap5si2$1idu$1@news.hub.org>
References: <c1e48b51.0210220946.37c05beb@posting.google.com> <ap5si2$1idu$1@news.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