日期:2014-05-16 浏览次数:20803 次
CREATE TABLE `test_log_1` (
? `id` int(11) NOT NULL AUTO_INCREMENT,
? `mobile` char(11) NOT NULL,
? `reg_date` int(11) unsigned NOT NULL,
? PRIMARY KEY (`id`,`reg_date`),
? KEY `reg_date` (`reg_date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
PARTITION BY RANGE (reg_date)
(PARTITION p0 VALUES LESS THAN (20120201) ENGINE = MyISAM,
?PARTITION p1 VALUES LESS THAN (20120301) ENGINE = MyISAM,
?PARTITION p2 VALUES LESS THAN (20120401) ENGINE = MyISAM,
?PARTITION p3 VALUES LESS THAN (20120501) ENGINE = MyISAM,
?PARTITION p4 VALUES LESS THAN (20120601) ENGINE = MyISAM,
?PARTITION p5 VALUES LESS THAN (20120701) ENGINE = MyISAM,
?PARTITION p6 VALUES LESS THAN (20120801) ENGINE = MyISAM,
?PARTITION p7 VALUES LESS THAN (20120901) ENGINE = MyISAM,
?PARTITION p8 VALUES LESS THAN (20121001) ENGINE = MyISAM,
?PARTITION p9 VALUES LESS THAN (20121101) ENGINE = MyISAM,
?PARTITION p10 VALUES LESS THAN (20121201) ENGINE = MyISAM,
?PARTITION p11 VALUES LESS THAN (20130101) ENGINE = MyISAM,
?PARTITION p12 VALUES LESS THAN (20130201) ENGINE = MyISAM,
?PARTITION p13 VALUES LESS THAN MAXVALUE ENGINE = MyISAM);
?
?
?
?
?