Re: Is it possible to return custom type as proper ROW?

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Is it possible to return custom type as proper ROW?
Date: 2006-10-11 15:53:34
Message-ID: 20061011155334.GA7588@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joe Kramer <cckramer(at)gmail(dot)com> schrieb:
>
> I want to get:
> item_id | last_update
> -------------------------------------
> 32 | 1234-12-12 12:12:12

Untested:

SELECT item_id, last_update from public.new_item(3,2);

HTH, Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2006-10-11 16:22:37 Re: plpgsql handling a set of values
Previous Message Sreejesh O S 2006-10-11 15:26:53 Re: Clarification needed