| From: | Darko Prenosil <darko(dot)prenosil(at)finteh(dot)hr> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: SETOF (was: Function example returning more then 1 |
| Date: | 2003-02-27 18:09:08 |
| Message-ID: | 200302271809.08204.darko.prenosil@finteh.hr |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thursday 27 February 2003 13:56, Kolus Maximiliano wrote:
> > You can't return more than one return value from function, but that
> > value can be of composite type.For example :"setof text" or "setof
> > record" are such types.
>
> Can you use functions returning "setof"s as if they were "normal"
> selects?.
>
> I saw that setof takes a type or table as an argument. What if what
> i want to return is not in a table schema, can i do something like "setof
> (blah inet, blah2 varchar(256))"?
SETOF RECORD as shown at :
http://developer.postgresql.org/docs/postgres/sql-select.html
or custom declared composite type:
http://developer.postgresql.org/docs/postgres/sql-createtype.html
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Patrick Bye (WFF) | 2003-02-27 18:21:30 | Re: Help! I don't get mail anymore |
| Previous Message | Jonathan Bartlett | 2003-02-27 18:08:04 | Re: initdb hangs even though ipc-daemon is running? |