CREATE TABLE quarterly_report_status (report_id INT NOT NULL,
report_status VARCHAR(20) NOT NULL,`
report_updated TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
)
PARTITION BY RANGE ( UNIX_TIMESTAMP(report_updated) ) (` PARTITION p0 VALUES LESS THAN ( UNIX_TIMESTAMP(‘2020-03-30 00:00:00’) ), PARTITION p1 VALUES LESS THAN ( UNIX_TIMESTAMP(‘2020-03-31 00:00:00’) ), PARTITION p2 VALUES LESS THAN ( UNIX_TIMESTAMP(‘2020-04-01 00:00:00’) ), PARTITION p3 VALUES LESS THAN ( UNIX_TIMESTAMP(‘2020-04-02 00:00:00’) ), PARTITION p4 VALUES LESS THAN ( UNIX_TIMESTAMP(‘2020-04-03 00:00:00’) ), PARTITION p5 VALUES LESS THAN ( UNIX_TIMESTAMP(‘2020-04-04 00:00:00’) ), PARTITION p6 VALUES LESS THAN ( UNIX_TIMESTAMP(‘2020-04-05 00:00:00’) ), PARTITION p7 VALUES LESS THAN ( UNIX_TIMESTAMP(‘2020-04-06 00:00:00’) ), PARTITION p8 VALUES LESS THAN ( UNIX_TIMESTAMP(‘2020-04-07 00:00:00’) ), PARTITION p9 VALUES LESS THAN ( UNIX_TIMESTAMP(‘2020-04-08 00:00:00’) ), );
如何根据时间删除p0,p1,p2?能否获得分区表的所有分区?