Suggestions for MySQL table -
students ------- name age email cola colb colc teachers ------- name age email cold cole parents ------- name age email colf colg colh coli
for above design, should create 1 table additional column called user_type
or create 3 tables? there millions of data insert. m worried performance if use 1 table them. need suggestions mysql gurus out here.
please advise. thanks.
if design table, rather in 2 tables.
usertype
- typeid (primary key) - typedescription
user
- userid (primary key) - typeid (foreign key) - cola (nullable) - colb (nullable) - colc (nullable) - cold (nullable) - cole (nullable) - colf (nullable) - colg (nullable) - colh (nullable) - coli (nullable)
Comments
Post a Comment