1

当我尝试创建分区时,它向我显示此错误。

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

请帮我

4

1 回答 1

2

mysql 5.0 不支持分区。

http://dev.mysql.com/doc/refman/5.1/en/partitioning.html

于 2011-04-28T10:16:47.417 回答