码迷,mamicode.com
首页 > 数据库 > 详细

mysql5.1,5.5,5.6做partition时支持的函数

时间:2014-11-11 16:40:03      阅读:527      评论:0      收藏:0      [点我收藏+]

标签:mysql

mysql5.1支持的partition函数 

ABS() CEILING() (see CEILING() and FLOOR()) DAY()
DAYOFMONTH() DAYOFWEEK() DAYOFYEAR()
DATEDIFF() EXTRACT() (see EXTRACT() function with WEEK specifier) FLOOR() (seeCEILING() and FLOOR())
HOUR() MICROSECOND() MINUTE()
MOD() MONTH() QUARTER()
SECOND() TIME_TO_SEC() TO_DAYS()
UNIX_TIMESTAMP() (permitted in MySQL 5.1.43 and later, with TIMESTAMP columns) WEEKDAY() YEAR()
  YEARWEEK()  

mysql5.5支持的partition函数

ABS() CEILING() (see CEILING() and FLOOR()) DAY()
DAYOFMONTH() DAYOFWEEK() DAYOFYEAR()
DATEDIFF() EXTRACT() (see EXTRACT() function with WEEK specifier) FLOOR() (seeCEILING() and FLOOR())
HOUR() MICROSECOND() MINUTE()
MOD() MONTH() QUARTER()
SECOND() TIME_TO_SEC() TO_DAYS()
TO_SECONDS()(implemented in MySQL 5.5.0) UNIX_TIMESTAMP() (permitted beginning with MySQL 5.5.1 and fully supported beginning with MySQL 5.5.15, with TIMESTAMPcolumns) WEEKDAY()
YEAR()   YEARWEEK()

mysql5.6支持的partition函数

ABS() CEILING() (see CEILING() and FLOOR()) DAY()
DAYOFMONTH() DAYOFWEEK() DAYOFYEAR()
DATEDIFF() EXTRACT() (see EXTRACT() function with WEEK specifier) FLOOR() (seeCEILING() and FLOOR())
HOUR() MICROSECOND() MINUTE()
MOD() MONTH() QUARTER()
SECOND() TIME_TO_SEC() TO_DAYS()
TO_SECONDS() UNIX_TIMESTAMP() (permitted beginning with MySQL 5.6.1 and fully supported beginning with MySQL 5.6.3, with TIMESTAMP columns) WEEKDAY()
YEAR()   YEARWEEK()


创建partition表时,如果用了非支持函数,会出现“This partition function is not allowed”的错误提示


mysql5.1,5.5,5.6做partition时支持的函数

标签:mysql

原文地址:http://blog.csdn.net/cleanfield/article/details/41011765

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!