KEY Partitioning Type
Understand KEY partitioning, similar to HASH but using MariaDB's internal hashing function on one or more columns to distribute data.
Syntax
PARTITION BY KEY ([column_names])
[PARTITIONS (number_of_partitions)]Description
ERROR 1488 (HY000): Field in list of fields for partition function not found in tableExamples
CREATE OR REPLACE TABLE t1 (v1 INT)
PARTITION BY KEY (v1)
PARTITIONS 2;Last updated
Was this helpful?

