HOWTO return a resultset form SP - Mailing list pgsql-novice

From Thorsten Mauch
Subject HOWTO return a resultset form SP
Date
Msg-id E5A63F34D141D111A6F4080009D70ACA0A391C@imkedv_pdc
Whole thread Raw
List pgsql-novice
Hi All
I tried to write a Stored Procedure that
returns a resultset that contains data of more then
on table.
My prob is that i don't know how to declate the return
type
e.g:
CREATE FUNCTION getoffers()
RETURNS SETOF ??????
AS
'SELECT
persistent.coid,persistent.classname,serviceoffer.range_begin,serviceoffer.r
ange_end,serviceoffer.coid_service,productoffer.coid_price,productoffer.coid
_quantity
FROM persistent,productoffer,serviceoffer,genericservice WHERE
productoffer.coid=serviceoffer.coid AND serviceoffer.coid=persistent.coid
AND serviceoffer.coid_service=genericservice.coid'
LANGUAGE 'SQL';

Maybe someone can help me ?

Thanx Thorsten

pgsql-novice by date:

Previous
From: Manuel Sugawara
Date:
Subject: Re: Looking for a way to get my time format.
Next
From: "Matteo Centenaro"
Date:
Subject: problem with Pl/Pgsql function