You are here: Re: A Question of design. « PHP Programming Language « IT news, forums, messages
Re: A Question of design.

Posted by Daz on 10/25/06 00:21

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация