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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Why index does not matain the order ?

Re: Why index does not matain the order ?

From: David Spencer <David.W.Spencer_at_elcaro.moc>
Date: Fri, 05 Jul 2002 17:28:42 +0100
Message-ID: <3D25C93A.6020707@elcaro.moc>


You appear to be confusing an index with an ORDER BY clause. An index is for finding rows quickly. An order by clause defines the order of data returned by a select. Neither is dependent on the other; you can ORDER BY where there is no index, and an index does not imply an order.

Oscar wrote:
> If a make a select like:
>
> ?? WHERE IS THE ORDER ???
>
> THE INDEX is CCIAWD 1, TICOWD 2, NUCOWD 3, CUENWD 4, CAUXWD 5
> SQLWKS> select /*+ index(TIGSA_DCW10 TIGSA_DCW10L) */

-- 
Email address munged to avoid SPAM
Received on Fri Jul 05 2002 - 11:28:42 CDT

Original text of this message

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