0
点赞
收藏
分享

微信扫一扫

【愚公系列】2022年04月 .NET架构班 037-分布式中间件 ShardingSphere-Proxy之分表

我是小瘦子哟 2022-04-05 阅读 18

文章目录


一、ShardingSphere-Proxy实现分表

将product表分成product-0和product-1的步骤如下:

1、创建数据库

创建数据库hmms

2、在hmms数据库中使用脚本创建创建user表

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS <
举报

相关推荐

0 条评论