Save CSS color values ​​in the database

I need to save a CSS HEX color value ( #FFFFFF for example) into a mysql database.

What type of data would I use and why would it be better to use another?

+6
source share
1 answer

save color with char(6) without # if the column is not null ... if the column is null, use varchar (6) to save the size

+12
source

All Articles