RE: Table with multiple primary keys - How

2006-03-08 Thread fbsd_user
@lists.mysql.com Subject: Re: Table with multiple primary keys - How It is not possible to have more than one PRIMARY key per table. Maybe you need to use one PRIMARY key as the main index into the table, then use UNIQUE or KEY which is a synonym for INDEX on the other two columns. This book will

Re: Table with multiple primary keys - How

2006-03-08 Thread mysql
It is not possible to have more than one PRIMARY key per table. Maybe you need to use one PRIMARY key as the main index into the table, then use UNIQUE or KEY which is a synonym for INDEX on the other two columns. This book will help you ALOT with designing tables. It will also teach you how

Re: Table with multiple primary keys - How

2006-03-07 Thread Rhino
- Original Message - From: "fbsd_user" <[EMAIL PROTECTED]> To: Sent: Tuesday, March 07, 2006 11:40 PM Subject: Table with multiple primary keys - How What I am trying to do here is have 3 separate primary keys. Creating a mysql select on either of the Logon_id

Re: Table with multiple primary keys - How

2006-03-07 Thread Dan Nelson
In the last episode (Mar 07), fbsd_user said: > What I am trying to do here is have 3 separate primary keys. Creating > a mysql select on either of the Logon_id, email_addr, or last_name > fields will do a single read to the matching value. Like having 3 > different indexes into the same table. C

Table with multiple primary keys - How

2006-03-07 Thread fbsd_user
What I am trying to do here is have 3 separate primary keys. Creating a mysql select on either of the Logon_id, email_addr, or last_name fields will do a single read to the matching value. Like having 3 different indexes into the same table. I don't want those 3 field concatenated together as a