mysql> select length(NULL),length(''),length(1); +--------------+------------+-----------+ | length(NULL) | length('') | length(1) | +--------------+------------+-----------+ | NULL | 0 | 1 | +--------------+------------+-----------+ 1 row in set (0.12 sec)
NULL columns require additional space in the row to record whether their values are NULL.
NULL列須要行中的額外空間來記錄它們的值是否爲NULL。