Re: Record with a field consisting of table rows

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: Record with a field consisting of table rows
Дата
Msg-id 33CD092E-3888-486C-A692-F32833143771@solfertje.student.utwente.nl
обсуждение исходный текст
Ответ на Re: Record with a field consisting of table rows  (Jon Smark <jon.smark@yahoo.com>)
Список pgsql-general
On 16 Jan 2011, at 17:40, Jon Smark wrote:

> Again, you're making it sound like I'm requesting something exotic,
> while any language with a modern type system allows this and much
> more without blinking.  In Ocaml, for example, the return type 'page_t'
> of my function could be defined as follows:
>
> type user_t = { uid: int; name: string; age: int; }
> type page_t = int * user_t list

That's the refcursor option I gave you earlier.

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


!DSPAM:737,4d33222411702065417953!



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

Предыдущее
От: Mag Gam
Дата:
Сообщение: database slowdown
Следующее
От: "Andrus Moor"
Дата:
Сообщение: Re: How to generate unique invoice numbers for each day