0
点赞
收藏
分享

微信扫一扫

mysql 表分区

求阙者 2022-06-27 阅读 63

分区类型:range list hash key

create table prange(id int primary key)engine=innodb partition by range(id)(partition p0 values less than(10),partition p1 values less than(20));

 create table orders(orderId int auto_increment,orderDate Datetime,primary key(orderId)) partition by range columns(orderDate)(partition p0 values less than('2021-01-01'),partition p1 values less than('2021-02-01'));

mysql 表分区_howhy

 


举报

相关推荐

0 条评论