Re: Question about Encoding a Custom Type

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Question about Encoding a Custom Type
Дата
Msg-id 20080616214845.GB2859@fetter.org
обсуждение исходный текст
Ответ на Re: Question about Encoding a Custom Type  ("David E. Wheeler" <david@kineticode.com>)
Ответы Re: Question about Encoding a Custom Type
Список pgsql-hackers
On Mon, Jun 16, 2008 at 02:45:57PM -0500, David Wheeler wrote:
> On Jun 16, 2008, at 14:38, Tom Lane wrote:
>
>> It's complaining about the use in ORDER BY.
>
> Okay, so stupid question: How can I get an array of the values in a
> given order? I guess this works:
>
> select array_accum(b) from ( select name from srt order by name ) AS
> A(b);

SELECT ARRAY(SELECT name FROM srt ORDER BY name); -- also works.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Crash in pgCrypto?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Crash in pgCrypto?