I have a MySQL table (with large data):
CREATE TABLE `rider_orders` ( `id` NOT NULL AUTO_INCREMENT PRIMARY KEY, `date` date NOT NULL, `shift_id` INT NOT NULL, `rider_id` INT NOT NULL, `product_id` INT NOT NULL )
I want to add partitions month wise (by altering):
ALTER TABLE rider_orders PARTITION BY HASH(MONTH(date));