order by (case when 10 then 1 when 14 then 2 when 29 then 3 when 49 then 4
when 20 then 5 end)

Em 6 de janeiro de 2015 19:19, Marcelo Florindo <marceloflori...@gmail.com>
escreveu:

> Boa noite colegas,
>
> Eu tenho este sql:
>
> Select * from fabricante where id in (10,14,29,49,20)
>
> Preciso que o select venha na mesma ordem do in, alguma ideia?
>
> Grato a todos e feliz 2015!!!
>
>
> Marcelo
> _______________________________________________
> pgbr-geral mailing list
> pgbr-geral@listas.postgresql.org.br
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>



-- 


Marcos Thomaz da Silva
Analista de Tecnologia da Informação
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a