2010-11-19 11 views
0

Ich versuche eine MySQL-Partition wie so einzurichten:max_rows auf die MySQL-Partitionierung

PARTITION BY LINEAR KEY(id) PARTITIONS 100 MAX_ROWS=1000000 

Aber ich erhalte den folgenden Fehler:

The server has returned this error message: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 'MAX_ROWS=1000000' at line 36

Wie verwendet man max_rows auf die MySQL-Partitionierung?

Antwort

1

MAX_ROWS ist eine Option pro Partition. Der Rest Ihres Abfrage-Snippets ist Teil des Partitionsdefinitionsblocks.

PARTITION BY LINEAR KEY (id) PARTITIONS 100 (PARTITION part_1 MAX_ROWS=1000000) 

Sprache spec ist here, suchen Sie nach partition_options: