pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Leavitt <thomas.leavitt@clickrebates.com>
To: pgsql-sql@postgresql.org
Subject: simple question
Date: Wed, 12 Jan 2000 02:10:36 -0800
Message-ID: <NDBBLIDGKLINCGOKPFFKMEFKCKAA.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)




view thread (15+ messages)  latest in thread

Message-ID: <NDBBLIDGKLINCGOKPFFKMEFKCKAA.thomas.leavitt@clickrebates.com>
Permalink:  ../NDBBLIDGKLINCGOKPFFKMEFKCKAA.thomas.leavitt@clickrebates.com/
Also on:    postgresql.org/message-id/NDBBLIDGKLINCGOKPFFKMEFKCKAA.thomas.leavitt@clickrebates.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: thomas.leavitt@clickrebates.com
  Subject: Re: simple question
  In-Reply-To: <NDBBLIDGKLINCGOKPFFKMEFKCKAA.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