| From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
|---|---|
| To: | Oswaldo Hernández <listas(at)soft-com(dot)es> |
| Cc: | Lista Postgres <pgsql-es-ayuda(at)postgresql(dot)org> |
| Subject: | Re: Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] comportamiento extraño |
| Date: | 2009-05-04 16:00:37 |
| Message-ID: | 20090504160036.GB4476@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
Oswaldo Hernández escribió:
> He ejecutado la siguiente sentecia en dos maquinas distintas:
>
> select a
> from (
> select 'Abc ' as a union
> select ' abc' as a union
> select 'xyz ' as a union
> select ' Xyz' as a
> ) foo
> order by 1
Otros ejemplos interesantes es estudiar qué pasa cuando tienes letras
con acentos, y demás. Por ejemplo:
Álvaro
Alvaro
Oswaldo
Cotorro
En mi sistema, bien configurado, el orden es así:
Alvaro
Álvaro
Cotorro
Oswaldo
En cambio si compara bytes (como quiere elcotorro), el resultado es
este:
$ LC_ALL=C sort < test.sort
Alvaro
Cotorro
Oswaldo
Álvaro
--
Alvaro Herrera http://www.amazon.com/gp/registry/CTMLCN8V17R4
htor: I use epiphany -- the best browser in this universe.
starcraft.man: Your insightful and deep commentary is simply breathtaking.
(http://ubuntuforums.org/showthread.php?t=524586)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2009-05-04 16:09:39 | Re: SQLITE Y POSTGRESQL |
| Previous Message | Mariano Reingart | 2009-05-04 15:56:15 | Re: booleanos de postgres en ADO y ODBC |