다음과 같은 파티션 테이블이 있을 때,
CREATE TABLE employees_2 (
emp_no int NOT NULL,
first_name VARCHAR(14) NOT NULL,
last_name VARCHAR(16) NOT NULL,
...
hire_date DATE NOT NULL,
PRIMARY KEY(emp_no, hire_date)
) PARTITION BY RANGE COLUMNS(hire_date)
(
PARTITION p1986_1990 VALUES LESS THEN ('1990-01-01'),
PARTITION p1991_1995 VALUES LESS THEN ('1996-01-01'),
PARTITION p1996_2000 VALUES LESS THEN ('2000-01-01'),
PARTITION p2001_2005 VALUES LESS THEN ('2006-01-01'),
);
INSERT INTO employees_2 SELECT * FROM employees;