>
> Uma opção sem criar estruturas adicionais seria:
>
> select *
> from <tabela>
> order by case value
>    when '1º Aval' then 0
>    when '2º Aval' then 1
>    .........
>    when '1º Trim' then x
>  end;
>
> --
> *Marcone Peres - DBA*
> http://www.linkedin.com/in/marconeperes
> *(61) 8146-0028*
> -------------- Próxima Parte ----------
>
> Olá Marcone,

Havia tentado desta maneira, mas o Postgres informa que não posso usar
nenhuma clausura em ORDER BY ...

=)
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a