| From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
|---|---|
| To: | postgres Emanuel CALVO FRANCO <postgres(dot)arg(at)gmail(dot)com> |
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
| Subject: | Re: plpsql: bucle for con cursor |
| Date: | 2008-10-08 23:06:15 |
| Message-ID: | 20081008230615.GI4164@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
postgres Emanuel CALVO FRANCO escribió:
> En la lista general preguntaron lo mismo
>
> LOOP
> FETCH ...;
> IF.....;
> EXIT WHEN NOT FOUND;
> ...
>
> END LOOP;
Ojo que agregaste un IF entre el FETCH y el EXIT, que puede cambiar el
valor de FOUND :-)
> En el manual no aparece este tipo de tecnica. Seria interesante agregarla
Manda un parche para el SGML :-)
--
Alvaro Herrera http://www.advogato.org/person/alvherre
"Limítate a mirar... y algun día veras"
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gabriel Hermes Colina Zambra | 2008-10-09 02:17:27 | Re: plpsql: bucle for con cursor |
| Previous Message | postgres Emanuel CALVO FRANCO | 2008-10-08 22:53:10 | Re: plpsql: bucle for con cursor |