how can i return multiple values from a function

Поиск
Список
Период
Сортировка
От srinivas
Тема how can i return multiple values from a function
Дата
Msg-id 111F528ABE61D511BD3C0050DA5CA0A2C5FC@JAGUAR
обсуждение исходный текст
Список pgsql-sql
i have tried retrieving multiple values using setof function but i
couldnt solve it.when i am trying using setof iam getting this as
output.
     1 CREATE FUNCTION hobbies (varchar) RETURNS SETOF bank     2     AS 'SELECT * FROM bank     3          '     4
LANGUAGE'sql';
 


~
output:  
select hobbies('srinivas') as col;   col    
-----------137462096137462096
(2 rows)

please let me know what is the alternative and if possible with a sample
piece of code.

cheers
chowdary.



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

Предыдущее
От: domingo@dad-it.com (Domingo Alvarez Duarte)
Дата:
Сообщение: A bug in triggers PG 7.1.3 or misunderstand ?
Следующее
От: "Robin's PG-SQL List"
Дата:
Сообщение: Aggregate Aggravation