Re: updated at a single element in a array using pl/pgsql

From: Dennis Gearon <gearond(at)cvc(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: updated at a single element in a array using pl/pgsql
Date: 2003-03-12 17:53:29
Message-ID: A8D9WQF2V73A9GFNM7297WTPWVGEYS.3e6f7419@cal-lab
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

All this talk about arrays is that they are finally in pl-pgsql? useful feature! I thought that
arrays were some kind of extension to SQL.

3/12/2003 9:04:23 AM, "Cristian Custodio" <crstian(at)terra(dot)com(dot)br> wrote:

>
>Can I update a single element in a array?
>
>CREATE OR REPLACE FUNCTION TESTEARRAY() RETURNS CHAR AS '
>DECLARE
>v_array integer[];
>BEGIN
> v_array[1] := 10; -- Parser error at or near ''[''
> RETURN v_array[1];
>END;
>'language 'plpgsql';
>
>Cristian
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>http://www.postgresql.org/docs/faqs/FAQ.html
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eric Cholet 2003-03-12 18:18:09 Re: vacuum error
Previous Message Flower Sun 2003-03-12 17:53:24 How to find out what options postgresql was installed