From: datactrl <quals@bigfoot.com>
To: pgsql-sql@postgresql.org
Subject: question about PL/pgSQL function
Date: Thu, 31 May 2001 21:24:31 +1000
Message-ID: <000901c0e9c4$4bd843a0$2400a8c0@hnjack> (raw)
With postgres 7.1
1. Function like example found on 24.4 Example in Programmer Guide
CREATE FUNCTION xxx (EMP, integer) RETURNS boolean AS'......
(which EMP is a table )
How do I pass a record to this function in PL/PGSQL? I try this
....
select into rec1 * from EMP where empNo =''xxxx'';
i1 := xxx(rec1,5);
....
But it won't work!
2. Is that possible to return a record from a function? And how do I get the
returned record in PL/pgSql
JACK
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: quals@bigfoot.com
Subject: Re: question about PL/pgSQL function
In-Reply-To: <000901c0e9c4$4bd843a0$2400a8c0@hnjack>
* 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