Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Explain Plan Weirdness
In article <3737493C.F936F4_at_mci.com>,
MKB <mohammed.bhatti_at_mci.com> wrote:
> I've got this table T1, as follows:
>
> CYN NOT NULL NUMBER(4)
> CQN NOT NULL NUMBER(1)
> AC NOT NULL CHAR(10)
> PIC NOT NULL CHAR(5)
> JC NOT NULL CHAR(1)
> CC NOT NULL CHAR(1)
>
> with a pk (T1_PK) of all the above columns and an index on T1_IDX1(AC,
> PIC) columns.
>
> I run explain plan on this SQL:
>
> delete T1
> where CYN = 1997
> and CQN = 3
> and AC = '2175322166'
> and PIC = '17464'
>
> and I get this:
>
> Execute Plan
>
> ...
> ...
>
> The plan still comes out as above. BTW, this is on Oracle
7.3.2/Solaris
> 2.5.1.
>
> So, can anyone enlighten me as to why the optimizer chooses the index
> and not the pk or am I missing something really basic here.
>
> Thanks
>
> mkb
>
>
--== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.--- Received on Tue May 11 1999 - 17:13:37 CDT
![]() |
![]() |