Store CSS color values in DB

mysql, sqldatatypes, types

Solution

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

Problem

I need to store a CSS HEX color value (`#FFFFFF` for example) into a mysql database. Which type of data would I use and why it would be better over using another one?

Original source