Re: [SQL] how can i return multiple values from a function

2001-10-04 Thread Allan Engelhardt
Try using temporary tables. Functions can't return tables and, it would seem, SETOFs. srinivas wrote: > 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

[SQL] how can i return multiple values from a function

2001-09-27 Thread srinivas
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: