Details
I have a dropdown that allows multiple options to be selected.
I want to easily and quickly search the database for these options. To do so, I have opted to create a column in the DB for each option as set out below.
userid | car |cdplayer|computer|
*********************************
785 | 1 | 0 | 1 |
Each of the columns uses TinyInt(1). If the option is selected I store the value 1, else I store 0. The problem I see with this method is that the table can get quite large if there are a lot of options. If I stored the options in a single column, I assume that it would be much harder to search the database for the columns, but then the database would be much smaller (maybe this doesn't matter at all though).
Question
Do you see any problems with the method I am currently employing? Is there a better way of achieving what I am trying to do?