pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Leavitt <thomas.leavitt@clickrebates.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] function parameters/output values
Date: Wed, 12 Jan 2000 16:40:25 -0800
Message-ID: <NDBBLIDGKLINCGOKPFFKIEGMCKAA.thomas.leavitt@clickrebates.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0001122350520.1646-100000@localhost.localdomain>

Peter,

Thanks for responding!

We looked at Chapter 4, and could not conclusively determine whether this
was the case. Can you point us to a specific page, paragraph, etc.? Can you
point us to some code examples (outside of the documentation)?

(Why isn't this in the FAQ... seems to be a very common question... and yet
almost impossible to conclusively determine by searching through the mailing
lists or documentation...)

Thomas

--
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)


> -----Original Message-----
> From: owner-pgsql-sql@postgreSQL.org
> [mailto:owner-pgsql-sql@postgreSQL.org]On Behalf Of Peter Eisentraut
> Sent: Wednesday, January 12, 2000 3:30 PM
> To: Thomas Leavitt
> Cc: pgsql-sql@postgreSQL.org
> Subject: Re: [SQL] function parameters/output values
>
>
> 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)

Message-ID: <NDBBLIDGKLINCGOKPFFKIEGMCKAA.thomas.leavitt@clickrebates.com>
Permalink:  ../NDBBLIDGKLINCGOKPFFKIEGMCKAA.thomas.leavitt@clickrebates.com/
Also on:    postgresql.org/message-id/NDBBLIDGKLINCGOKPFFKIEGMCKAA.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 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, peter_e@gmx.net
  Subject: Re: [SQL] function parameters/output values
  In-Reply-To: <NDBBLIDGKLINCGOKPFFKIEGMCKAA.thomas.leavitt@clickrebates.com>
  References: <Pine.LNX.4.21.0001122350520.1646-100000@localhost.localdomain> <NDBBLIDGKLINCGOKPFFKIEGMCKAA.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