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

Поиск
Список
Период
Сортировка
Искать
От
Dennis Gearon
Тема
Re: updated at a single element in a array using pl/pgsql
Дата
Msg-id
A8D9WQF2V73A9GFNM7297WTPWVGEYS.3e6f7419@cal-lab
Ответ на
Список
Дерево обсуждения
updated at a single element in a array using pl/pgsql "Cristian Custodio" <crstian@terra.com.br>
Re: updated at a single element in a array using pl/pgsql Dennis Gearon <gearond@cvc.net>
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"  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
>



В списке pgsql-general по дате отправления
От: Flower Sun
Дата:
От: Eric Cholet
Дата:
Сообщение: Re: vacuum error
FAQ