MySQL优化——从建表开始优化

1、建表 一、不要使用使用NULL字段,设置字段默认值 bad case: name char(32) default null age int not null good case: name char(32) not null default ” age int not null default 0web 二、用好数值类型 tinyint(1Byte) smallint(2Byte) medi
相关文章
相关标签/搜索