Hi

Oracle 8.0.5
Tru64 Unix 4.0f

> Have you any idea whether you can force the usage of the first column in a
> multi-column index with a hint?
> The code below works fine to force key order lookups on non-unique indices
> where the column specified in the hint has it's own non-unique index. But
> it doesn't like it here, where the only index is a unique one over 3
> columns. I was hoping it would still be able to read the first column as
> if it were a non-unique index on its own. If not I'll have create a new
> non-unique index on this column only - and hope the optimiser will
> understand what I mean with the hint ! 
> 
Regards

Lee

> SQL Explain Plan for:
> 
> SELECT pandg_customer_key FROM (SELECT /*+ INDEX(PG_EI_CUSTOMER_PHONE
> pandg_customer_key) */ rownum rn, pandg_customer_key FROM
> PG_EI_CUSTOMER_PHONE WHERE pandg_customer_key >= 0) temp WHERE
> MOD(temp.rn, 100000) = 1
> 
> is:
> SELECT STATEMENT   Cost = 225
>   VIEW
>     COUNT
>       TABLE ACCESS FULL PG_EI_CUSTOMER_PHONE
> 
> 
> 
> 


*********************************************************************

The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Robertson Lee - lerobe
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to