Show Matheus.

E para criar um array() do resultado e não duas linhas ficaria mais ou
menos assim:

SELECT array( SELECT unnest( c_array_1 ) EXCEPT SELECT unnest(c_array_2) )
INTO c_array_result;

Abraços.

Em 11 de junho de 2015 14:24, Matheus Saraiva <[email protected]>
escreveu:

> Em Qui, 2015-06-11 às 10:53 -0300, Cleysson Lima escreveu:
> > Matheus, não sei se vc já conseguiu resolver mas o nosso amigo
> > Fabrizio Mello postou algo desse tipo uma vez [1], da uma olhada se
> > atende.
> >
> > [1]
> >
> http://fabriziomello.blogspot.com.br/2010/09/funcao-arraydiff-em-postgresql.html
> >
> >
> > E depois poste a sua solução para aprendizado.
> >
> >
> SELECT unnest(anyarray1) EXCEPT SELECT unnest(anyarray2)
>
>
> Grato pela dica.
>
>
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a