Reply to Re: ORDER BY?!?!

Your name:

Reply:


Posted by David on 07/30/06 11:52

On Sat, 29 Jul 2006 14:53:34 GMT, "Dimitri Marshall"
<recipient@shawRemoveThis.ca> wrote:

>Hey Guys,
>
>Ya in my userAccounts table I use the e-mail address and username, although
>in this case I did need a number of some sort. I did figure out
>auto_increment and obviously it wasn't as hard as I was letting on. Anyway,
>it was fun trying to make my own!

You can use both the email address and the username as primary keys.
By declaring both to be primary keys, they will be treated as "one"
big key. Personally, I have not found too much use for autoincrement.

If I really want unique fields, I find it better to generate the
data myself based on some combination of fields of data. At least
when I look at my unique field, it is something familiar to me, rather
than simply having some numbers go from 1 to whatever.


>Thanks,

Anytime

David

[Back to original 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

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