文章目录
一、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 <