爪哇 MySQL 2021-08-13 字段为什么要求定义为notnull? MySQL官网这样介绍: NULL columns require additional space in the rowto record whether their values are NULL. For MyISAM tables, each NULL columntakes one bit extra, rounded up to the nearest byte. null值会占用更多的字节,且会在程序中造成很多与预期不符的情况。