pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Thomas Leavitt <thomas.leavitt@clickrebates.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] function parameters/output values
Date: Thu, 13 Jan 2000 00:29:55 +0100 (CET)
Message-ID: <Pine.LNX.4.21.0001122350520.1646-100000@localhost.localdomain> (raw)
In-Reply-To: <NDBBLIDGKLINCGOKPFFKKEFLCKAA.thomas.leavitt@clickrebates.com>

Chapter 4 of the programmer's guide.

On 2000-01-12, Thomas Leavitt mentioned:

> I would like to know if function parameters are used to pass output values
> back to the function.
> 
> e.g.
> 
> create function func1(p1 varchar,p2 varchar OUTPUT, p3 varchar OUTPUT)
> BEGIN
> 	SELECT p1 = t.foo1, p3 = t.foo2
> 	FROM test_table t
> 	WHERE foo3 = p1
> END
> 
> DECLARE p2 varchar(50), p3 varchar(50)
> CALL func1('abc',@p2 out,@p3 out)
> PRINT @p2
> PRINT @p3
> --
> Thomas Leavitt -- thomas.leavitt@clickrebates.com; 408-591-3342
> Co-Founder/COO, ClickRebates.Com, Inc. (www.clickrebates.com)
> Get Paid What You're Worth!
> 
> Sign up for our pre-launch guest list and refer your friends!
> 
> Or use our working prototype at www.clickrebates.org to "Surf for a Higher
> Cause" (earn money for charity)
> 
> 
> ************
> 
> 

-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden





view thread (3+ messages)  latest in thread

Message-ID: <Pine.LNX.4.21.0001122350520.1646-100000@localhost.localdomain>
Permalink:  ../Pine.LNX.4.21.0001122350520.1646-100000@localhost.localdomain/
Also on:    postgresql.org/message-id/Pine.LNX.4.21.0001122350520.1646-100000@localhost.localdomain

 · 

reply

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-sql@postgresql.org
  Cc: peter_e@gmx.net, thomas.leavitt@clickrebates.com
  Subject: Re: [SQL] function parameters/output values
  In-Reply-To: <Pine.LNX.4.21.0001122350520.1646-100000@localhost.localdomain>
  References: <NDBBLIDGKLINCGOKPFFKKEFLCKAA.thomas.leavitt@clickrebates.com> <Pine.LNX.4.21.0001122350520.1646-100000@localhost.localdomain>

* 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