i am designing a database which will be used for a website used to exchange automobiles.
Autos have different attributes and types of attibutes like
Attributes of Type “Multimedia”, “Security” etc
for examlpe ABS, Airbages, ESP ect
I want to save all these attributes in one cloumn in the form of 1 and 0 combinitation
like
1001000101
but my problem is if I change the position of attribute names in database how this combination “1001000101” will be updated? or which should be the best possible way to do this.
What benefit do you expect to gain from putting all the flags into a single column, that would outweigh the maintainability of having them as separate boolean properties?
Provided your set of flags is reasonably stable, I’d recommend you at least start by modelling them as individual boolean columns, which will be much simpler to manage. Make managing them more complicated later if it will provide some other measurable benefit.