From: Josh Berkus <josh@agliodbs.com>
To: datactrl <quals@bigfoot.com>
To: pgsql-sql@postgresql.org
Subject: Re: question about PL/pgSQL function
Date: Fri, 01 Jun 2001 09:24:38 -0700
Message-ID: <web-65766@davinci.ethosmedia.com> (raw)
In-Reply-To: <000901c0e9c4$4bd843a0$2400a8c0@hnjack>
Jack,
> select into rec1 * from EMP where empNo =''xxxx'';
> i1 := xxx(rec1,5);
Bad syntax. The correct syntax is:
SELECT * INTO rec1 FROM EMP WHERE empNo=''xxxx'';
> 2. Is that possible to return a record from a function? And how do I
> get the
> returned record in PL/pgSql
No, it is not possible. I know the list archives are kinda hard to
search, but we've discussed this question ad naseum; in fact, I just
provided a workaround earlier this week.
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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: josh@agliodbs.com, quals@bigfoot.com
Subject: Re: question about PL/pgSQL function
In-Reply-To: <web-65766@davinci.ethosmedia.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