Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Linguistic indexes and 'order by' won't work...

Re: Linguistic indexes and 'order by' won't work...

From: Frank <fbortel_at_home.nl>
Date: Mon, 29 Apr 2002 12:21:54 +0200
Message-ID: <3CCD1EC2.1030304@home.nl>


Ariel wrote:

> Hi everybody!
> I got this example from manual "Setting Up an NLS Environment" - "Collation
> Parameters" - "Sorting Character Data".
>
> ALTER SESSION SET query_rewrite_enabled=true;
> ALTER SESSION SET NLS_COMP = ANSI;
> ALTER SESSION SET NLS_SORT='FRENCH';
>
> CREATE TABLE test(col VARCHAR(20) NOT NULL); <- many records
>
> CREATE INDEX test_idx ON test(NLSSORT(col, 'NLS_SORT=FRENCH'));
>
>
> -> my statement (cost base optimizer) ALTER SESSION set OPTIMIZER_MODE =
> first_rows;
>
> SELECT * FROM test WHERE NLSSORT(col) IS NOT NULL ORDER BY col;
>
> and in explain plan I don't see, that this query uses "test_idx" to create
> result... ;-/
>

Do you think NULL values are indexed? Hint: how to distinguish one

NULL from the other. Received on Mon Apr 29 2002 - 05:21:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US