程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> MySQL綜合教程 >> mysql5.1,5.5,5.6做partition時支持的函數

mysql5.1,5.5,5.6做partition時支持的函數

編輯:MySQL綜合教程

mysql5.1,5.5,5.6做partition時支持的函數


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”的錯誤提示

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved