From: Thomas Leavitt <thomas.leavitt@clickrebates.com>
To: pgsql-sql@postgresql.org
Subject: function parameters/output values
Date: Wed, 12 Jan 2000 02:29:47 -0800
Message-ID: <NDBBLIDGKLINCGOKPFFKKEFLCKAA.thomas.leavitt@clickrebates.com> (raw)
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)
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: thomas.leavitt@clickrebates.com
Subject: Re: function parameters/output values
In-Reply-To: <NDBBLIDGKLINCGOKPFFKKEFLCKAA.thomas.leavitt@clickrebates.com>
References: <NDBBLIDGKLINCGOKPFFKKEFLCKAA.thomas.leavitt@clickrebates.com>
* 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