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

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Is it possible to return custom type as proper ROW?
Date: 2006-10-11 17:42:21
Message-ID: 20061011174221.GA23370@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am Wed, dem 11.10.2006, um 12:56:51 -0400 mailte Tom Lane folgendes:
> Andreas Kretschmer <akretschmer(at)spamfence(dot)net> writes:
> > 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);
>
> Or just
> SELECT * FROM public.new_item(3,2);

Yes, but i have learned, that 'SELECT * ...' is evil...

Thanks for the hint.

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47215, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karen Hill 2006-10-11 18:04:54 Re: Find out the number of rows returned by refcursor?
Previous Message Steve Crawford 2006-10-11 17:28:21 Re: more anti-postgresql FUD