Configuration: Windows XP Internet Explorer 6.0
|
Hello
You would only want/need one table. One good rule of thumb to determine if you need multiple tables is if there are any many-to-one relationships. For example, if you were to allow users to enter multiple phone numbers then you would have a separate table for the phone numbers - each record having a id field pointing back to the user's id. If you were only going to allow 3 phone numbers you *could* just create three columns in the user table. But, you should always plan ahead for expansion. For ID's you should use an auto-incrementing, unique field, typically the filed is just called id, or something similar. For empty fields, just pass a value of NULL or an empty string "". There are a lot of subtletiels between an empty string and NULL which would take more space than this forum allows to explain. |
Résultats pour database question
Résultats pour database question
Résultats pour database question
Résultats pour database question
Résultats pour database question
Résultats pour database question