</pre>
====キーバーティショニング====
----
*https://dev.mysql.com/doc/refman/5.6/ja/partitioning-key.html
<pre>
mysql> alter table jra_data
-> partition by list COLUMNS(data_type) (
-> partition p0 values in ('0'),
-> partition p1 values in ('1'),
-> partition p2 values in ('2'),
-> partition p5 values in ('5'),
-> partition p7 values in ('7'),
-> partition p9 values in ('9'),
-> partition pA values in ('A'),
-> partition pB values in ('B')
-> );
</pre>
*確認
<pre>
mysql> SELECT TABLE_SCHEMA, TABLE_NAME, PARTITION_NAME, PARTITION_ORDINAL_POSITION, TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME='jra_data';
</pre>