Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Sort problem
In article <9tleeb$44v$1_at_news.telecom.cz>, "Michal says...
>
>Hello,
>
>I have following problem on Oracle 8.1.7.
>
>Lets have simple table:
>
>tst_tbl (name varchar2(10))
>
>It contains following data
>
>'11111'
>'AAAAA'
>
>SELECT * FROM tst_tbl WHERE name >= '-' ORDER BY name
>returns:
>'AAAAA'
>'11111'
>
>SELECT * FROM tst_tbl WHERE name >= 'AAAAA' ORDER BY name
>returns:
>'AAAAA'
>
>But second query should also return '11111' row.
>
>I experienced this when NLS_SORT parameter is CZECH. I think it is bug or am
>I wrong?
>
>Michal Motalík
>
>
>
>
??
ops$tkyte_at_ORA8I.WORLD> select ascii('1') from dual;
ASCII('1')
49
ops$tkyte_at_ORA8I.WORLD> select ascii('A') from dual;
ASCII('A')
65
ops$tkyte_at_ORA8I.WORLD> select * from dual where '1' >= 'A';
no rows selected
ops$tkyte_at_ORA8I.WORLD>
ascii '1' is less then ascii 'A' so it won't be returned...
-- Thomas Kyte (tkyte@us.oracle.com) http://asktom.oracle.com/ Expert one on one Oracle, programming techniques and solutions for Oracle. http://www.amazon.com/exec/obidos/ASIN/1861004826/ Opinions are mine and do not necessarily reflect those of Oracle CorpReceived on Fri Nov 23 2001 - 08:52:45 CST
![]() |
![]() |