MySql 分区

dev.mysql.com/doc/refman/5.6/en/partitioning-types.html

 

SELECT
        PLUGIN_NAME AS NAME,
        PLUGIN_VERSION AS VERSION,
        PLUGIN_STATUS AS STATUS
    FROM INFORMATION_SCHEMA.PLUGINS
    WHERE PLUGIN_TYPE='STORAGE ENGINE'; 

 

Name Version Status
binlog 1.0 ACTIVE
MEMORY 1.0 ACTIVE
MyISAM 1.0 ACTIVE
MRG_MYISAM 1.0 ACTIVE
CSV 1.0 ACTIVE
InnoDB 5.6 ACTIVE
FEDERATED 1.0 DISABLED
PERFORMANCE_SCHEMA 0.1 ACTIVE
ARCHIVE 3.0 ACTIVE
BLACKHOLE 1.0 ACTIVE
partition 1.0 ACTIVE

 

  • RANGE partitioning.  This type of partitioning assigns rows to partitions based on column values falling within a given range. See Section 19.2.1, “RANGE Partitioning”. For information about an extension to this type, RANGE COLUMNS, see Section 19.2.3.1, “RANGE COLUMNS partitioning”.

  • LIST partitioning.  Similar to partitioning by RANGE, except that the partition is selected based on columns matching one of a set of discrete values. See Section 19.2.2, “LIST Partitioning”. For information about an extension to this type, LIST COLUMNS, see Section 19.2.3.2, “LIST COLUMNS partitioning”.

  • HASH partitioning.  With this type of partitioning, a partition is selected based on the value returned by a user-defined expression that operates on column values in rows to be inserted into the table. The function may consist of any expression valid in MySQL that yields a nonnegative integer value. An extension to this type, LINEAR HASH, is also available. See Section 19.2.4, “HASH Partitioning”.

  • KEY partitioning.  This type of partitioning is similar to partitioning by HASH, except that only one or more columns to be evaluated are supplied, and the MySQL server provides its own hashing function. These columns can contain other than integer values, since the hashing function supplied by MySQL guarantees an integer result regardless of the column data type. An extension to this type, LINEAR KEY, is also available. See Section 19.2.5, “KEY Partitioning”.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值