当我尝试创建分区时,它向我显示此错误。
SQL查询:
CREATE TABLE t1(
id INT,
val INT
)PARTITION BY HASH(
val
)(
PARTITION p0 MAX_ROWS =200 MIN_ROWS =10,
PARTITION p1 MAX_ROWS =100 MIN_ROWS =20
)
MySQL 说:文档
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PARTITION BY HASH(val)
(
PARTITION p0 MAX_ROWS=200 MIN_ROWS=10,
PARTITION' at line 2
请帮我