mysql - SET() or Please suggest suitable design -


i guess question quite basic, imo hardest.

so lets want create table personnel details of person , , lets other basic info name,address,contactno. etc. need store whether person investor,mentor,hr guy,alumni,partner,donor or service provider. can in more 1 fields listed above.

is recommendable use set() field 7 options? seems logic way i've read set() fields not friendly searches in big databases.

the other options had in mind are:

1.having 7 boolean columns each field in original table.

which best way, considering database/table big?.

plz suggest way out!! in advance

normalize.

one table hold different types, then, since person can 0 or more number of type, table glue them together. consider design this;

person: -------------- id int name varchar email varchar ...   type -------------- id int name varchar   person_type -------------- person_id type_id 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -