function return multiply rows

Поиск
Список
Период
Сортировка
От Jeroen Olthof
Тема function return multiply rows
Дата
Msg-id amrnt5$1ivj$1@news.hub.org
обсуждение исходный текст
Список pgsql-sql
What is going wrong here?


An example of what I'm trying to do.

vw_teams is a view but same problem when trying it on a single table
CREATE FUNCTION test() RETURNS SETOF vw_teams AS 'select * from vw_teams;'
LANGUAGE 'sql';

SELECT test();

results in
  test
-----------137789256137789256
(2 rows)

and this is what I expect
  team   |   datum
----------+------------groenwit | 2002-07-09ordenbos | 2002-09-14
(2 rows)


????

kind regard

Jeroen Olthof





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

Предыдущее
От: Kevin Houle
Дата:
Сообщение: Re: Dublicates pairs in a table.
Следующее
От: Gustavo Tadao Okida
Дата:
Сообщение: PL/pgsql