You were talking about multiple fields in the primary key, not multiple primary keys.

On 06/29/2010 03:51 PM, Johan De Meersman wrote:
Correct, but you still can't have more than one primary key. Kind of
defeats the idea of it being primary, really.

On Tue, Jun 29, 2010 at 3:36 PM, petya <pe...@petya.org.hu
<mailto:pe...@petya.org.hu>> wrote:

    If you use innodb, primary key lookups are far faster than secondary
    indexes.

    Peter


    On 06/29/2010 03:34 PM, João Cândido de Souza Neto wrote:

        I think the real question is: What´s the purpose of any other
        field in my
        primary key if the first one is an auto_increment and will never
        repeat?


    --
    MySQL General Mailing List
    For list archives: http://lists.mysql.com/mysql
    To unsubscribe: http://lists.mysql.com/mysql?unsub=vegiv...@tuxera.be




--
Bier met grenadyn
Is als mosterd by den wyn
Sy die't drinkt, is eene kwezel
Hy die't drinkt, is ras een ezel

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=arch...@jab.org

Reply via email to