mysql 访问某个分区

mysql> select * from history_log partition(p20150806);
Empty set (0.00 sec)

mysql> select * from history_log partition(20151231);
ERROR 1064 (42000): 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 '20151231)' at line 1
mysql>  select * from history_log partition(p20151231);
Empty set (0.00 sec)

你可能感兴趣的:(Mysql,官方文档)