Guest_imported
New member
- Jan 1, 1970
- 0
i need to have a users table but I should be able to add information about the users very easely... (because for the moment I don't know what for information I'm going to have to store about these users)
so I have a table: USERS
--------------------------
userID, userGroupID (with a reference to a userGroups table)
and I have a table with name-value pairs: USERINFO
----------------------------------------------------
name, value
so this table *could* contain for example:
name value
userName Dave
password blabla
email blabl@blabla.com
but I don't know what way it is BEST to link 'em together...
1) i could add a primary key column to the USERINFO table , add a column to the USERS table and link it..
2) i could add the userID to the USERINFO table and find out what INFO there is about a specific user this way..
i don't know... anyone got some advice??? alternative ways to solve this problem are also welcome...
thanks....
so I have a table: USERS
--------------------------
userID, userGroupID (with a reference to a userGroups table)
and I have a table with name-value pairs: USERINFO
----------------------------------------------------
name, value
so this table *could* contain for example:
name value
userName Dave
password blabla
email blabl@blabla.com
but I don't know what way it is BEST to link 'em together...
1) i could add a primary key column to the USERINFO table , add a column to the USERS table and link it..
2) i could add the userID to the USERINFO table and find out what INFO there is about a specific user this way..
i don't know... anyone got some advice??? alternative ways to solve this problem are also welcome...
thanks....