Mysql table partition based on last digit of a column/id
I want to create partitions based on last digit of employee id, i.e all ids ending with 0 go to first partition , ending with 1 go to second partition and so on.. This way I want to create 10 partitions, employee id can be int or varchar which ever is easy and fast in making partition. Currently we have 10 separate tables employee_01, employee_02... (dont like this) Although the retrieval and insertion time will be enhanced by no means, but maintainability would be increased by huge factors, thanks Edit: How do I specify partitioning criteria based on last digit of employee I was wondering if