1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
程序员小墨 2022-09-25 01:36:01 +08:00
parent f02b2ddc3c
commit 8855178ffb
3 changed files with 13 additions and 17 deletions

View File

@ -107,7 +107,7 @@ async function readSQLAndExecute() {
// console.error(err);
}
console.log(`count: ${++count}, errCount: ${errCount}, total: ${lines.length}`);
await sleep(10);
// await sleep(10);
}
console.log("done");
}

View File

@ -162,8 +162,8 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('人生总是如此痛苦',
INSERT INTO `answer` (`chinese`, `english`) VALUES ('今朝有酒,今朝醉', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('从来没有', 'Never');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('从现在开始 一年也没有关系', 'A Year From Now It Won''t Matter');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('仔细想想再说', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('仔细倾听;然后你就会知道', 'Listen More Carefully; Then You Will Know');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('仔细想想再说', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('令人期待的事情马上要发生', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('令人震惊的事件可能发生的', 'Startling Events May Occur As A Result');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('以丧治丧,以甜还甜', '');
@ -187,7 +187,7 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('会是甜的', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('会有一个风光明媚的未来', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('会有一些困难', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('会有人陪着你', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('会有障碍要克服', 'There Will Be Obstacles To Overcome');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('会有障碍要克服', 'There Will Be Obstacles To Overcome');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('会特别顺利', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('会被一直依赖的', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('会让你痛苦的', '');
@ -318,13 +318,14 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('先让自己休息', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('光明的', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('克制', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('克服困难', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('全力以赴', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('全力以赴', 'Give It All You''ve Got');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('全部给它', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('关注你的家庭生活', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('关注生活本身', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('其他人将取决于你的选择', 'Others Will Depend On Your Choices');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('其实什么都没有', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('其实大家都知道', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('具有重大意义', 'It Is Significant');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('再也不要见', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('再多考虑', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('再慷慨大方一点', 'Be More Generous');
@ -619,12 +620,14 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('扫除障碍', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('找个人给你意见', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('找回自己', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('把它写下来', 'Get It In Writing');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('把它当作一个机会', 'Consider It An Opportunity');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('把心揣怀里', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('把握现在', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('把重心放在工作/学习上', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('把问题交给投硬币', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('抓住机会', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('抗拒', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('抛弃旧的解决方案', 'Leave Behind Old Solutions');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('抛弃首选方案', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('拜拜', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('拭目以待', '');
@ -806,7 +809,6 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('相关的问题可能的浮
INSERT INTO `answer` (`chinese`, `english`) VALUES ('相见不如怀念', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('相遇', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('省点力气吧', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('把它当作一个机会', 'Consider It An Opportunity');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('看向未来', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('看看会发生什么', 'Watch And See What Happens');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('看缘分吧', '');
@ -819,7 +821,6 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('睡一觉再问', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('研究它,然后享受它', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('确保一切顺利', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('禁言', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('抛弃旧的解决方案', 'Leave Behind Old Solutions');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('空想', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('空想家', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('突如其来的幸福', '');
@ -853,7 +854,6 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('结果会是好的', 'The O
INSERT INTO `answer` (`chinese`, `english`) VALUES ('结果会让你惊喜', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('结果可能让人惊讶', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('给人依赖', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('全力以赴', 'Give It All You''ve Got');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('给自己一个肯定', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('绝不', 'Never');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('绝对不', 'Absolutely Not');
@ -863,8 +863,6 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('绝对的', 'Absolutely');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('继续前行', 'Move On');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('继续前进', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('考虑一下这个机会', 'Consider It An Opportunity');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这很重要', 'It Is Significant');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('具有重大意义', 'It Is Significant');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('耐心点', 'Be Patient');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('耐心的等待', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('肯定', '');
@ -897,7 +895,6 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('被排挤', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('要主动', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('要像UP一样学会等待', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('要变通', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('选择太多和选择太少一样困难', 'Realize That Too Many Choices Is AS Difficult As Too Few');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('要抓住问题的关键', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('要有点耐心', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('要有耐心', '');
@ -986,7 +983,6 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('这可能很难,但你会
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这可能是特别的', 'It Could Be Extraordinary');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这大概会让你有点寂寞', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这将会创造一个扰乱', 'It Will Create A Stir');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('会有挫折需要克服', 'There Will Be Obstacles To Overcome');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这将影响别人看你', 'It Will Affect How Others See You');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这将很美好', 'It''s Gonna Be Great');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这将是一件有乐趣的事情', 'It Will Be A Pleasure');
@ -998,6 +994,7 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('这将造成轰动', 'It Wi
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这就是命', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这就是结局', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这并不重要', 'It Is Not Significant');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这很重要', 'It Is Significant');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这时候非常顺利', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是一个不错的时间安排', 'It''s A Good Time To Make Plans');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是一个制定新计划的好时机', 'This Is A Good Time To Make A New Plan');
@ -1014,6 +1011,7 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是个麻烦', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是件你忘不掉的事', 'It Is Something You Won''t Forget');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是你不会忘记的', 'It Is Something You Won''t Forget');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是你不会忘记的事情', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是你无法控制的', 'That''s Out Of Your Control');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是你最后的机会', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是困难的,但你会发现它的价值', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是在浪费金钱', '');
@ -1040,6 +1038,7 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('迷失的世界', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('退一步海阔天空', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('退后一厘米', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('逆水行舟', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('选择太多和选择太少一样困难', 'Realize That Too Many Choices Is AS Difficult As Too Few');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('遇上方知有', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('遵守规则', 'Respect The Rules');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('遵循专家的建议', 'Follow The Advice Of Experts');
@ -1048,15 +1047,13 @@ INSERT INTO `answer` (`chinese`, `english`) VALUES ('遵循智者的建议', '')
INSERT INTO `answer` (`chinese`, `english`) VALUES ('避免第一个解决方案', 'Avoid The First Solution');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('那又怎样,那就这样', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('那将是浪费钱', 'That Would Be A Waste Of Money');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('这是你无法控制的', 'That''s Out Of Your Control');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('那超出你的能力范围', 'That''s Beyond Your Ability');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('醒醒吧,别做梦了', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('采取冒险的态度', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('采取行动', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('采用冒险的态度', 'Adopt An Adventurous Attitude');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('重新确定重要事项的优先级', 'Reprioritize What Is Important');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('重新想想', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('重新确定优先次序什么是重要的', 'Reprioritize What Is Important');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('重新确定什么是重要的', 'Reprioritize What Is Important');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('重新考虑', '');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('重新考虑你的想法', 'Reconsider Your Thoughts');
INSERT INTO `answer` (`chinese`, `english`) VALUES ('重新考虑你的方法', 'Reconsider Your Approach');

View File

@ -1,7 +1,7 @@
SET
FOREIGN_KEY_CHECKS = 0;
CREATE DATABASE `answerbook` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_german2_ci';
CREATE DATABASE `answerbook` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ci';
USE `answerbook`;
@ -15,8 +15,7 @@ CREATE TABLE `answer` (
`english` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '英文',
PRIMARY KEY (`id`),
UNIQUE KEY `text` (`chinese`,`english`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
SET
FOREIGN_KEY_CHECKS = 1;