Right, the proof is that if I have an PKEY on ID and an index just on
VALUE in MySQL then a query that would use both ID and VALUE works fine
with just the index on VALUE.

For Oracle, I need an explicit compound index (in addition to the PKEY)
on (ID,VALUE).

The results on MySQL get a little blurry when the PKEY is compound.

-----Original Message-----
From: Olexandr Melnyk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2008 11:08 AM
To: mysql@lists.mysql.com
Subject: Indices in InnoDB/MySQL

On 4/1/08, Paul DuBois <[EMAIL PROTECTED]> wrote:
>
> At 10:01 AM -0700 4/1/08, Robert DiFalco wrote:
> >I've been told that an index always contains the primary key.
>
>
> By who?
>
> Ask for proof.



I guess he was referring to the fact that InnoDB stores the primary key
values alongside the indexed columns value, as a way of referencing the
associated row.

--
Sincerely yours,
Olexandr Melnyk <><
http://omelnyk.net/


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to