How to realize key Partition in mysql
This article mainly introduces how to achieve key partition in mysql, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to know about it.
1. Partitioning by key is similar to partitioning by HASH, but the hash function of the key partition is provided by the MySQL server.
2. MySQLCluster uses the function MD5 () to implement the KEY partition, using only one list of one or more column names.
Example
Create table user (an int (11), b datetime) partition by key (b) partitions 4; Thank you for reading this article carefully. I hope the article "how to achieve key Partition in mysql" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!