选中数据库转储sql带数据的时候,一般格式如下:
INSERT INTO `t_member` VALUES (1, '1', NULL); INSERT INTO `t_member` VALUES (2, '1', 23); INSERT INTO `t_member` VALUES (3, '1', 25); INSERT INTO `t_member` VALUES (4, '0', 26); INSERT INTO `t_member` VALUES (5, '2', 28);
这样有个问题就是数据量大的时候,,导入贼慢.,下面的批量模式更快
INSERT INTO `t_member` VALUES (1, '1', NULL), (2, '1', 23), (3, '1', 23), (4, '1', 23), (5, '1', 23), (6, '1', 23), (7, '1', 23), (8, '1', 23), (9, '1', 23), (10, '1', 23), (11, '1', 23), (12, '1', 23), (13, '1', 23), (14, '1', 23), (15, '1', 23), (16, '1', 23), (17, '1', 23), (18, '1', 23), (19, '1', 23);
不需要太多配置的话,直接默认配置自动即可
最后导出的数据插入数据格式如下:
INSERT INTO `t_member` VALUES (1, '1', NULL), (2, '1', 23), (3, '1', 23), (4, '1', 23), (5, '1', 23), (6, '1', 23), (7, '1', 23), (8, '1', 23), (9, '1', 23), (10, '1', 23), (11, '1', 23), (12, '1', 23), (13, '1', 23), (14, '1', 23), (15, '1', 23), (16, '1', 23), (17, '1', 23), (18, '1', 23), (19, '1', 23);