[Fwd: Re: SELECT INTO an array]

From: Alberto Bolchini <alberto(at)melloni49(dot)it>
To: pgsql-novice(at)postgresql(dot)org
Subject: [Fwd: Re: SELECT INTO an array]
Date: 2002-05-03 17:41:38
Message-ID: 3CD2CBD2.3020202@melloni49.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Though I don't want to do a full select (the table has very many fields
and some of them hold a lot of values).

a.

Josh Berkus wrote:
> Alberto,
>
>
>>I'm trying to write a PLPGSQL Function using an array as an internal
>>variable, but I don't seem to succeed:
>>
>>CREATE FUNCTION ... RETURNS ... AS '
>>DECLARE
>> l_record integer[2];
>>BEGIN
>> SELECT INTO l_record col01, col02 FROM table01 WHERE ...;
>
>
> You don't want an array for the above. You want a RECORD.
>
> -Josh
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
>

--
Alberto Bolchini mailto:alberto(at)melloni49(dot)it
PGP/GnuPG key: 1024D/61B602FA
Fingerprint: 60E8 FE24 ADFA 486D 6F61 C14B D322 482F 61B6 02FA
Key available at: http://www.keyserver.net

--
Alberto Bolchini mailto:alberto(at)melloni49(dot)it
PGP/GnuPG key: 1024D/61B602FA
Fingerprint: 60E8 FE24 ADFA 486D 6F61 C14B D322 482F 61B6 02FA
Key available at: http://www.keyserver.net

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Ansley 2002-05-03 19:31:43 Date Formatting
Previous Message Josh Berkus 2002-05-03 16:54:44 Re: SELECT INTO an array