create table part_tab(c1 int default null,c2 varchar(30) default null,c3 date default null)
engine=myisam
partition by range(year(c3))(
partition p0 values less than(1995),
partition p1 values less than(1996),
partition p2 values less than(1997),
partition p3 values less than(1998),
partition p4 values less than(1999),
partition p5 values less than(2000),
partition p6 values less than(2001),
partition p7 values less than(2002),
partition p8 values less than(2003),
partition p9 values less than(2004),
partition p10 values less than(2005),
partition p11 values less than(2006),
partition p12 values less than maxvalue;
欢迎选择我的课程,让我们一起见证您的进步~~