2008/6/3 Rúben Lício <[EMAIL PROTECTED]>:
> Como posso retornar diversos campos em uma store procedure?
CREATE FUNCTION r(c1 out text,c2 out text)
LANGUAGE plpgsql;
AS $c$
BEGIN
SELECT 'teste1' AS foo,'teste2' AS bar
INTO $1,$2;
END;
$c$;
SELECT * FROM r();
> Se alguem tiver algum link para indicar também ajuda.
http://www.postgresql.org/docs/8.3/static/plpgsql.html
-Leo
--
Leonardo Cezar
http://pgcon.postgresql.org.br
http://www.dextra.com.br/postgres
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral