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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-admin by date

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