Partitioning Syntax error alter table

女生的网名这么多〃 提交于 2019-12-25 05:29:09

问题


I am trying to add partitions to my table. Used this syntax

ALTER TABLE report_datanew6 PARTITION BY RANGE ( UNIX_TIMESTAMP(timestamp) ) (
PARTITION p0 VALUES LESS THAN ( UNIX_TIMESTAMP('2014-05-06') ),
PARTITION p1 VALUES LESS THAN ( UNIX_TIMESTAMP('2014-05-07') ),
PARTITION p2 VALUES LESS THAN ( UNIX_TIMESTAMP('2014-05-08') ),
PARTITION p3 VALUES LESS THAN( MAXVALUE)
);

It gives me a syntax error at line1.

Error : [Err] 1486 - Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed

来源:https://stackoverflow.com/questions/28938001/partitioning-syntax-error-alter-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!