MySQL 파티션

IT위키

파티션 조회[편집 | 원본 편집]

select
*
from information_schema.partitions
where table_name = '테이블명'

파티션 추가[편집 | 원본 편집]

alter table '테이블명' add partition 
(
    PARTITION `파티션명` VALUES LESS THAN (파티션 )
}

파티션 삭제(drop)[편집 | 원본 편집]

ALTER TABLE `테이블명` DROP PARTITION '파티션명'

파티션 비우기(truncate)[편집 | 원본 편집]