Obrigado, funcionou!
Em Sexta-feira, 6 de Janeiro de 2017 20:28, Camilo
<[email protected]> escreveu:
Em 06/01/2017 13:40, [email protected] escreveu:
>
> SELECT
> MIN(fatura.inicio) INTO inicio
> ,MAX(fatura.inicio) INTO termino
> FROM fatura
> WHERE lote = r.lote; -- Não funciona
>
> Poderia postar o todo o corpo da função?
>
Talvez seja o local onde as variáveis estão declaradas, tente alterar o
trecho de código para como está abaixo:
SELECT
MIN(fatura.inicio),
MAX(fatura.termino)
INTO
inicio, termino
FROM fatura
WHERE lote = rResult.lote;
Att: Camilo Santos
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral