For example, the age of this field can be used 1990-03-15 also can be expressed in 19900315
You can select char and int on the column type;
If a field can select more than one type, try to choose a faster type;
Field-type precedence integer >DATE,TIME>CHAR,VARCHAR>BLOB
Integral type, time operation fast, space saving
Char/varchar to consider the conversion of the character set and the collation set of sorting, the speed is slow
BLOB cannot use memory temp table
The enum type is stored internally using an integer type, so the speed is the same as int, but note that if the enum stores the string and the Char type field
Correlation query, enum internal need a conversion, take time, enum and Char column association speed is slower than char and char, but also depends on the situation of specific analysis;
If you're sure you want to use int, consider whether you can use Smallint/tinyint,
Be able to solve char (10) not with char (20), not too generous;
Try to avoid using null
Null is not conducive to the index, to be labeled with special bytes, the space occupied on the disk is actually greater.
MySQL column type selection