TINYINT vs ENUM(0, 1) for boolean values in MySQL
问题 Which one is better, Tinyint with 0 and 1 values or ENUM 0,1 in MyISAM tables and MySQL 5.1? 回答1: You can use BIT(1) as mentioned in mysql 5.1 reference. i will not recommend enum or tinyint(1) as bit(1) needs only 1 bit for storing boolean value while tinyint(1) needs 8 bits. 回答2: My research shows that BIT(1) is a synonym for TINYINT(1) for versions of MySQL before 5.0.3. MySQL versions after 5.0.3 change how the BIT datatype works. It is no longer a synonym for TINYINT and is the only data