Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D0C664761D3 for ; Wed, 23 Oct 2002 09:25:31 -0400 (EDT) Received: from lubitsch.akademie.de (ns.akademie.de [62.165.4.3]) by postgresql.org (Postfix) with ESMTP id 00FC947610A for ; Wed, 23 Oct 2002 09:25:31 -0400 (EDT) Received: from [62.165.4.160] (helo=redgrave) by lubitsch.akademie.de with esmtp (Exim 3.33 #2) id 184LVu-00050Q-00; Wed, 23 Oct 2002 15:25:34 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Ian Barwick Organization: akademie.de To: markus.cl@gmx.de (Markus Dehmann), pgsql-admin@postgresql.org Subject: Re: Print line? Date: Wed, 23 Oct 2002 15:38:36 +0200 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200210231538.36962.barwick@gmx.net> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/216 X-Sequence-Number: 6074 On Tuesday 22 October 2002 19:46, 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; By definition SQL doesn't have any output formatting functions; those are provided by individual client applications. In psql you can use \echo to print a line to standard output. \? shows other available options. Ian Barwick barwick@gmx.net