>Aparece "character varying (1000)". Não será este o seu problema?
Não, o meu select não tem UNION, segue o select: SELECT (select usuario from usuarios where chave=(select autorizadopor from pedidocompra where pedido=e.pedidocompra)) as quemautorizoucompra FROM entradas e WHERE e.tipoentrada='0' and e.dataoperacao = current_date - 3 -- View this message in context: http://www.nabble.com/Sub-Select-tp24724124p24742835.html Sent from the PostgreSQL - Brasil mailing list archive at Nabble.com. _______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral