Thread: Print command equivalent in postgresql

Print command equivalent in postgresql

From
"Negandhi, Nishith"
Date:
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 .??
 
Regards
 

Re: Print command equivalent in postgresql

From
Iannsp
Date:
Negandhi, Nishith escreveu:
> 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 .??
>
> Regards
>
I may use the raise notice if you are in stored procedure.


--
Ivo Nascimento
Iann tech - Desenvolvendo soluções com performance e segurança
http://www.ianntech.com.br


Re: Print command equivalent in postgresql

From
Bruno Wolff III
Date:
On Tue, Jan 23, 2007 at 10:47:13 -0600,
  "Negandhi, Nishith" <Nishith.Negandhi@infoUSA.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';