Skip site navigation (1) Skip section navigation (2)

Re: Print command equivalent in postgresql

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Negandhi, Nishith" <Nishith(dot)Negandhi(at)infoUSA(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Print command equivalent in postgresql
Date: 2007-01-24 20:26:36
Message-ID: 20070124202636.GA19495@wolff.to (view raw or flat)
Thread:
Lists: pgsql-admin
On Tue, Jan 23, 2007 at 10:47:13 -0600,
  "Negandhi, Nishith" <Nishith(dot)Negandhi(at)infoUSA(dot)com> wrote:
> Hi,
> In SQL Server there is a PRINT command that returns a user-defined
> message to the client.  
> What is the equivalent of this on postgresql .??

Can you explain more about what you are looking for?
If you just want to return a row with a string in it you can use:
SELECT 'Your string here';

In response to

pgsql-admin by date

Next:From: Campbell, LanceDate: 2007-01-24 20:45:26
Subject: Logging just SQL commands in an SQL script format
Previous:From: Ray StellDate: 2007-01-24 20:13:24
Subject: log entries in 8.2.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group