Re: A Question of design.
- From: "Daz" <cutenfuzzy@xxxxxxxxx>
- Date: 24 Oct 2006 17:21:04 -0700
Rik wrote:
I have told you several times an index on 2 columns is perfectly possible.
Make the index:
ALTER TABLE `user_books` ADD UNIQUE (
`user_id` ,
`book_id`
)
Voilá.
Hi Rick. Sorry, I believe that I have also mentioned several times that
I can't, as each user has one row per book, meaning there won't be any
unique uids, and if there were, it wouldn't be for very long at all.
The book_ids in the user table will also be duplicated, as more than
one user is likely to have the same book.
Thanks for your help. :)
Daz.
.
- Follow-Ups:
- Re: A Question of design.
- From: Rik
- Re: A Question of design.
- References:
- A Question of design.
- From: Daz
- Re: A Question of design.
- From: Chung Leong
- Re: A Question of design.
- From: Daz
- Re: A Question of design.
- From: Chung Leong
- Re: A Question of design.
- From: Daz
- Re: A Question of design.
- From: Jerry Stuckle
- Re: A Question of design.
- From: Daz
- Re: A Question of design.
- From: Jerry Stuckle
- Re: A Question of design.
- From: Daz
- Re: A Question of design.
- From: Rik
- Re: A Question of design.
- From: Chung Leong
- Re: A Question of design.
- From: Rik
- Re: A Question of design.
- From: Daz
- Re: A Question of design.
- From: Rik
- A Question of design.
- Prev by Date: Re: PROBLEM: passing variables to FILE()
- Next by Date: Re: Using PHP to add a word to a txt file every X charachters
- Previous by thread: Re: A Question of design.
- Next by thread: Re: A Question of design.
- Index(es):
Relevant Pages
|