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
相關文章
相關標籤/搜索