Re: Associative array in Pl/PgSQL

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Associative array in Pl/PgSQL
Дата
Msg-id 51859EE1.9030106@hogranch.com
обсуждение исходный текст
Ответ на Associative array in Pl/PgSQL  (Karel Riveron Escobar <kescobar@estudiantes.uci.cu>)
Ответы Re: Associative array in Pl/PgSQL  (Karel Riveron Escobar <kescobar@estudiantes.uci.cu>)
Список pgsql-general
On 5/4/2013 4:40 PM, Karel Riveron Escobar wrote:
And, I need work with it into a Pl/PgSQL function. How can I do this?

SQL has no such concept as 'associative arrays'.  it understands relations (tables).

maybe convert it to hstore format, and pass it in as a text string, but your example gets even messier in that you've nested these associative things.

would be much more appropriate to store that data as tables in postgresql.



-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast

В списке pgsql-general по дате отправления:

Предыдущее
От: Karel Riveron Escobar
Дата:
Сообщение: Associative array in Pl/PgSQL
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: Simple SQL INSERT to avoid duplication failed: why?