Muito obrigado. Funciona perfeitamente tanto usando SELECT sort(v) quanto v := sort(v);
2008/6/30 Osvaldo Rosario Kussama <[EMAIL PROTECTED]>: > Rúben Lício escreveu: >> Boa tarde, >> >> Tenho um array integer e preciso ordenar esse array para efetuar >> alguns calculos com esse resultado ordenada. >> Existe alguma função no PG para ordenar um array de forma ascendente? >> Caso não exista, alguem por acaso já tem uma SP feita para isso? >> > > > Veja o módulo contrib/intarray em: > http://www.postgresql.org/docs/current/interactive/intarray.html > > sort(int[], text dir) > > Osvaldo > > _______________________________________________ > 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