You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
814 B
MySQL
32 lines
814 B
MySQL
3 years ago
|
/*
|
||
|
ps: 注意配置了多少分表就创建多少张
|
||
|
|
||
|
Source Server : 本地环境mysql
|
||
|
Source Server Type : MySQL
|
||
|
Source Server Version : 80026
|
||
|
Source Host : localhost:3306
|
||
|
Source Schema : shard-1
|
||
|
|
||
|
Target Server Type : MySQL
|
||
|
Target Server Version : 80026
|
||
|
File Encoding : 65001
|
||
|
|
||
|
Date: 24/10/2021 01:42:50
|
||
|
*/
|
||
|
|
||
|
SET NAMES utf8mb4;
|
||
|
SET FOREIGN_KEY_CHECKS = 0;
|
||
|
|
||
|
-- ----------------------------
|
||
|
-- Table structure for t_order_0
|
||
|
-- ----------------------------
|
||
|
DROP TABLE IF EXISTS `t_order`;
|
||
|
CREATE TABLE `t_order_0` (
|
||
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
||
|
`user_id` bigint NOT NULL,
|
||
|
`order_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||
|
|
||
|
SET FOREIGN_KEY_CHECKS = 1;
|