Re: rows and array

Поиск
Список
Период
Сортировка
От FERREIRA William (COFRAMI)
Тема Re: rows and array
Дата
Msg-id 1904E3EB39448246A7ECB76DF34A70B00143B43D@TOCOMEXC03
обсуждение исходный текст
Ответ на rows and array  ("FERREIRA William (COFRAMI)" <william.ferreira@airbus.com>)
Ответы Re: rows and array  (Richard Huxton <dev@archonet.com>)
Список pgsql-general

i want do to it in a stored procedure using the pl/pgSQL language.
i can't use "ORDER by" because the traitment is very specific.

for example, in oracle syntaxe i can create my own type :
        type recordChild is TABLE OF XDB_CHILD%ROWTYPE
and next when i declare my variable with this type :
        children recordChild;
i can store rows and re-order them like this :
children(i-j) := children(i-j-1);

-----Message d'origine-----
De : Richard Huxton [mailto:dev@archonet.com]
Envoyé : mardi 22 février 2005 12:20
À : FERREIRA William (COFRAMI)
Cc : 'pgsql-general@postgresql.org'
Objet : Re: [GENERAL] rows and array

FERREIRA William (COFRAMI) wrote:
> hi
>
> does postgresql allows to store rows into array ?
> i select rows in a table and i would like to sort them depending on my
> criteria.

Is this different from
   SELECT a,b,c FROM t ORDER BY a ASC, b DESC;

If so, could you specify more details - what language you are using for
example.

--
   Richard Huxton
   Archonet Ltd

This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.

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

Предыдущее
От: Ragnar Hafstað
Дата:
Сообщение: Re: Problem with inserting data into a table.....
Следующее
От: "Boris Makovecki"
Дата:
Сообщение: migration