Re: Function return rows?

From: Allan Engelhardt <allane(at)cybaea(dot)com>
To: Pat M <pmeloy(at)removethispart(dot)home(dot)com>
Subject: Re: Function return rows?
Date: 2001-10-04 20:33:02
Message-ID: 3BBCC77E.9451206D@cybaea.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bob Swerdlow 2001-10-04 20:55:51 Re: ORDER BY case insensitive?
Previous Message Allan Engelhardt 2001-10-04 20:30:56 Re: how can i return multiple values from a function