Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sorting and NLS_LANGUAGE

29644Feb 1 2006 — edited Feb 1 2006
I have an example table (TEMP) with one column (NAME VARCHAR2(10)), in which I inserted exactly two values: 'S/SP' and 'SIMEA'.
When I try to select the rows and to sort it, the result differs, depending on the NLS_LANGUAGE I set:

SQL> alter session set nls_language=GERMAN;

Session wurde geƤndert.

SQL> select name from temp order by 1;

NAME
----------
SIMEA
S/SP

SQL> alter session set nls_language=AMERICAN;

Session altered.

SQL> select name from temp order by 1;

NAME
----------
S/SP
SIMEA

SQL>

But why? In both German and American language, the "/" (slash) has an ASCII value of 47, and the letters begin with the value of 65. So in my opinion, the result of my select should always be the same, no matter which NLS_LANGUAGE I have set.

Regards,
Ralf Zwanziger
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 1 2006
Added on Feb 1 2006
1 comment
2,063 views