Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize key Partition in mysql

Shulou Source: shulou.com Published: 2022-06-03 09:54:47 11月15日 Update

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!

Tags: Articles functions values interests at the same time multiple examples are composed of more friends servers knowledge editing industry information information channels channels hashes references learning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Technology OPPO Reno Linux MariaDB