개발 & 계발/MySQL
-
MySQL 파티셔닝 방법 (Query 예제)개발 & 계발/MySQL 2019. 8. 28. 13:01
CREATE TABLE partition_test( name varchar(30) default '', reg_date datetime default CURRENT_TIMESTAMP, key idx_name(name) ) PARTITION BY RANGE (YEAR(reg_date))( PARTITION p2019 VALUES LESS THAN (2020), PARTITION p2020 VALUES LESS THAN (2021), PARTITION p2021 VALUES LESS THAN (2022), PARTITION pmax VALUES LESS THAN MAXVALUE ); ALTER TABLE partition_test REORGANIZE PARTITION pmax INTO ( PARTITION ..
-