El día 29 de agosto de 2011 16:12, Pavel Stehule
<pavel.steh...@gmail.com> escribió:
> 2011/8/29 Martín Marqués <martin.marq...@gmail.com>:
>>>
>>> refcursors can be dynamic defined
>>
>> OK, I'm totally lost. How do you define a dynamic cursor? Couldn't
>> find anything in the manuals.
>>
>
> DECLARE
>    curs1 refcursor;
> BEGIN
>  OPEN curs1 FOR EXECUTE 'SELECT ...';

OK, not that easy, but I think I got it working.

Thanks alot Pavel!

-- 
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to