Functions supported by partition in mysql5.1, 5.5, and 5.6: mysql5.1partition

Source: Internet
Author: User

Functions supported by partition in mysql5.1, 5.5, and 5.6: mysql5.1partition

Partition functions supported by mysql5.1

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,TIMESTAMPColumns) WEEKDAY() YEAR()
  YEARWEEK()  

Partition functions supported by mysql5.5

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,TIMESTAMPColumns) WEEKDAY()
YEAR()   YEARWEEK()

Partition functions supported by mysql5.6

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,TIMESTAMPColumns) WEEKDAY()
YEAR()   YEARWEEK()


When creating a partition table, if an unsupported function is used, the error message "This partition function is not allowed" appears.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.