Bom dia pessoal,

Existe alguma garantia de que o resultado da query abaixo virá na ordem que
os *union all *estão sendo montados?

select *
from (select field from foo where field = 'c'
      union all
      select field from foo where field = 'b'
      union all
      select field from foo where field = 'a') f

Ou seja, vai retornar 'c', 'b', 'a', (nesta ordem), ou isso não é uma
regra? Não encontrei nada na documentação.

Att,

Diogo L. V. G. Rubert
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a