Obrigado Leonardo. Consegui retornar os campos, ainda não consegui testar o restorno com um select into mas assim que cosneguir posto o resultado.
On Tue, Jun 3, 2008 at 10:01 AM, Leonardo Cezar <[EMAIL PROTECTED]> wrote: > 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 > pgbr-geral@listas.postgresql.org.br > https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral > -- Rúben Lício Reis Cybernet Latino América www.cybernetla.com Linux user #433535 _______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral