January 2018
Intermediate to advanced
446 pages
12h 57m
English
If you wish to keep PARTITION DEFINITION in the table and remove only the data, you can execute the TRUNCATE PARTITION command:
mysql> ALTER TABLE event_history TRUNCATE PARTITION p20171001;Query OK, 0 rows affected (0.08 sec)