Mysql char 类型为null 的话会占表空间吗?
有可能,当行记录格式为Redundant 的时候 char 即使为null, 也会用0x00 填充。
当然Redundant 已经是Mysql 5.0 之前的行记录存储方式了。
compact 记录格式下是不会占用空间的。
突然有感,必须写点……
Mysql char 类型为null 的话会占表空间吗?
有可能,当行记录格式为Redundant 的时候 char 即使为null, 也会用0x00 填充。
当然Redundant 已经是Mysql 5.0 之前的行记录存储方式了。
compact 记录格式下是不会占用空间的。
突然有感,必须写点……