Tenho observado alguns problemas de ordenação no PostgreSQL, mas não estou
conseguindo solucionar.
escola_teste=# select codigo,nome from aluno_esc where nome like 'LUCA%'
order by nome;
965 | LUCAS VARELLA KVITKO
2274 | LUCAS VARGAS SCHMIDT
1375 | LUCAS WEBER
1376 | LUCAS WEBER
2308 | LUCA ZILIO DE OLIVEIRA
## Achei que poderia haver algum caracter especial no nome do LUCA, mas
não tem....
select
ascii(substr(nome,1,1)),ascii(substr(nome,2,1)),ascii(substr(nome,3,1)),ascii(substr(nome,4,1)),ascii(substr(nome,5,1))
from aluno_esc where codigo=2308;
ascii | ascii | ascii | ascii | ascii
-------+-------+-------+-------+-------
76 | 85 | 67 | 65 | 32
Estou usando PostgreSQL Versão 7.4.5. Na versão 7.4.17 acontece o mesmo erro.
Alguma dica ?
[]s
Claudimir
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral