Re: Function return rows?

Поиск
Список
Период
Сортировка
От Allan Engelhardt
Тема Re: Function return rows?
Дата
Msg-id 3BBCC77E.9451206D@cybaea.com
обсуждение исходный текст
Ответ на Function return rows?  ("Pat M" <pmeloy@removethispart.home.com>)
Список 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.


В списке pgsql-sql по дате отправления:

Предыдущее
От: Allan Engelhardt
Дата:
Сообщение: Re: how can i return multiple values from a function
Следующее
От: Jason Earl
Дата:
Сообщение: Re: ORDER BY case insensitive?