how can I select into an array?

Поиск
Список
Период
Сортировка
От Andy Kriger
Тема how can I select into an array?
Дата
Msg-id 200402061555.i16Ft6G29410@server1.greaterthanone.com
обсуждение исходный текст
Ответы Re: how can I select into an array?  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Re: how can I select into an array?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: how can I select into an array?  ("Andy Kriger" <akriger@greaterthanone.com>)
Список pgsql-general

I would like to select strings from a table and return them as an array
For example,
select new_array(name) from my_tbl
would return
String[] { name1, name2, name3, etc }

Is this possible with built-in SQL/psql functions?
If not, how hard would it be to write a function that does this? (given that I have coding experience but none writing pgsql functions)

Andy Kriger | Software Mechanic | Greater Than One, Inc.
28 West 27th Street | 7th Floor | New York, NY 10001
P: 212.252.7197 | F: 212.252.7364 | E: akriger@greaterthanone.com

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

Предыдущее
От: "Peter Alberer"
Дата:
Сообщение: Re: Run 2 versions of Postgresql on one machine?
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: newbie question... how do I get table structure?