Re: question about PL/pgSQL function

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: "datactrl" <quals(at)bigfoot(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: question about PL/pgSQL function
Date: 2001-06-01 16:24:38
Message-ID: web-65766@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2001-06-01 16:30:40 PGAccess/pgplsql Blues
Previous Message Josh Berkus 2001-06-01 16:21:17 Re: Date manipulation