From: Allan Engelhardt <allane@cybaea.com>
To: Pat M <pmeloy@removethispart.home.com>
Subject: Re: Function return rows?
Date: Thu, 04 Oct 2001 21:33:02 +0100
Message-ID: <3BBCC77E.9451206D@cybaea.com> (raw)
References: <9p4s81$19q9$1@news.tht.net>
Pat M wrote:
> Can I use a function to execute a query and return a row or set of rows?
No. Consider using temporary tables if you must do this.
> If
> so, can you point me to some examples or perhaps give me an example of a
> function that would do roughly the same thing as:
>
> select * from mytable where mytable.name ~* 'aname';
>
> I can't seem to find any examples that return rows, just single ints and
> bools and stuff.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: allane@cybaea.com, pmeloy@removethispart.home.com
Subject: Re: Function return rows?
In-Reply-To: <3BBCC77E.9451206D@cybaea.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox