From 785557c9a8398074c4449280e6d2cd20e3084443 Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Mon, 6 Jun 2022 18:32:49 +0800 Subject: [PATCH] join --- .../1.INNER JOIN/config.json" | 9 +- .../1.INNER JOIN/join_self.json" | 7 ++ .../1.INNER JOIN/join_self.md" | 75 +++++++++++++++++ .../2. LEFT JOIN/config.json" | 9 +- .../2. LEFT JOIN/left_join.json" | 7 ++ .../2. LEFT JOIN/left_join.md" | 70 ++++++++++++++++ .../3. RIGHT JOIN/config.json" | 11 ++- .../3. RIGHT JOIN/right_join.json" | 7 ++ .../3. RIGHT JOIN/right_join.md" | 72 ++++++++++++++++ .../4. CROSS JOIN/config.json" | 9 +- .../4. CROSS JOIN/cross_join.json" | 7 ++ .../4. CROSS JOIN/cross_join.md" | 83 +++++++++++++++++++ .../delay.md" | 2 +- .../1. SHOW STATUS/config.json" | 0 .../config.json" | 9 -- .../2. EXPLAIN/config.json" | 0 .../config.json" | 9 -- .../3. SHOW PROFILE/config.json" | 0 .../config.json" | 9 -- .../config.json" | 2 +- .../config.json" | 9 -- .../config.json" | 0 data/tree.json | 44 ---------- 23 files changed, 359 insertions(+), 91 deletions(-) create mode 100644 "data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/join_self.json" create mode 100644 "data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/join_self.md" create mode 100644 "data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/left_join.json" create mode 100644 "data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/left_join.md" create mode 100644 "data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/right_join.json" create mode 100644 "data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/right_join.md" create mode 100644 "data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/cross_join.json" create mode 100644 "data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/cross_join.md" rename "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/5. SHOW STATUS/config.json" => "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/1. SHOW STATUS/config.json" (100%) delete mode 100644 "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/1. \345\265\214\345\245\227\346\237\245\350\257\242/config.json" rename "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/6. EXPLAIN/config.json" => "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/2. EXPLAIN/config.json" (100%) delete mode 100644 "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/2.ORDER BY \344\274\230\345\214\226/config.json" rename "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/7. SHOW PROFILE/config.json" => "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/3. SHOW PROFILE/config.json" (100%) delete mode 100644 "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/3.\345\210\206\351\241\265\346\237\245\350\257\242\344\274\230\345\214\226/config.json" rename "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/8. PT-QUERY-DIGEST\345\210\206\346\236\220\346\237\245\350\257\242/config.json" => "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/4. PT-QUERY-DIGEST\345\210\206\346\236\220\346\237\245\350\257\242/config.json" (76%) delete mode 100644 "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/4.GROUP BY\344\274\230\345\214\226/config.json" rename "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/9.\345\255\220\346\237\245\350\257\242\344\274\230\345\214\226/config.json" => "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/5.\345\255\220\346\237\245\350\257\242\344\274\230\345\214\226/config.json" (100%) diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/config.json" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/config.json" index 4af8316..2bac1f8 100644 --- "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/config.json" +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/config.json" @@ -2,9 +2,14 @@ "node_id": "mysql-73bfbd883511436c85130b71fa108038", "keywords": [], "children": [], - "export": [], + "export": [ + "join_self.json" + ], "keywords_must": [ - ["mysql", "inner join"] + [ + "mysql", + "inner join" + ] ], "keywords_forbid": [], "group": 0 diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/join_self.json" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/join_self.json" new file mode 100644 index 0000000..27c964d --- /dev/null +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/join_self.json" @@ -0,0 +1,7 @@ +{ + "type": "code_options", + "author": "ccat", + "source": "join_self.md", + "notebook_enable": false, + "exercise_id": "59e9daf6f4444c2988785af0b75dda10" +} \ No newline at end of file diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/join_self.md" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/join_self.md" new file mode 100644 index 0000000..f74a738 --- /dev/null +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/1.INNER JOIN/join_self.md" @@ -0,0 +1,75 @@ +# 自连接 + +现有 node 表如下: + +```mysql +create table node( + id int primary key auto_increment, + pid int, + content varchar(256) +) +``` + +现在Joe 想要给出 content 以 `fork-` 开头的所有节点,和它们的子节点,输出 `parent_id, parent_content, child_id, child_content` 。 +他应该怎么做? + +## 答案 + +```mysql +select l.id as parent_id, + l.content as parent_content, + r.id as child_id, + r.content as child_content +from node as l + join node as r on l.id = r.pid +where l.content like 'fork-%'; +``` + +## 选项 + +### A + +```mysql +select l.id as parent_id, + l.content as parent_content, + r.id as child_id, + r.content as child_content +from node as l + right join node as r on l.id = r.pid +where l.content like 'fork-%'; +``` + +### B + +```mysql +select l.id as parent_id, + l.content as parent_content, + r.id as child_id, + r.content as child_content +from node as l, node as r +where l.id =(+) r.pid l.content like 'fork-%'; +``` + +### C + +```mysql +select l.id as parent_id, + l.content as parent_content, + r.id as child_id, + r.content as child_content +from node as l + cross join node as r on l.id = r.pid +where l.content like 'fork-%'; +``` + +### D + +```mysql +select l.id as parent_id, + l.content as parent_content, + r.id as child_id, + r.content as child_content +from node as l + join node as r on l.pid = r.id +where l.content like 'fork-%'; +``` \ No newline at end of file diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/config.json" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/config.json" index f8f2cfd..75b1677 100644 --- "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/config.json" +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/config.json" @@ -2,9 +2,14 @@ "node_id": "mysql-d7a8869fb798498c839c913ce930015d", "keywords": [], "children": [], - "export": [], + "export": [ + "left_join.json" + ], "keywords_must": [ - ["mysql", "left join"] + [ + "mysql", + "left join" + ] ], "keywords_forbid": [], "group": 0 diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/left_join.json" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/left_join.json" new file mode 100644 index 0000000..23cfedc --- /dev/null +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/left_join.json" @@ -0,0 +1,7 @@ +{ + "type": "code_options", + "author": "ccat", + "source": "left_join.md", + "notebook_enable": false, + "exercise_id": "67515869f4fa4661ba858305e5c85c72" +} \ No newline at end of file diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/left_join.md" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/left_join.md" new file mode 100644 index 0000000..4c37d9b --- /dev/null +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/2. LEFT JOIN/left_join.md" @@ -0,0 +1,70 @@ +# 左连接 + +现有部门表 + +```mysql +create table department( + id int primary key auto_increment, + name varchar(256) +) +``` + +和员工表 + +```mysql +create table employee( + id int primary key auto_increment, + dept int, + name varchar(256), + post varchar(16) +) +``` + +Joe 想要列出所有的部门,如果这个部门有部门助理(post 为 `assistant`),则将 stuff 的名字也列出来,那么这个查询应该是: + +## 答案 + +```mysql +select d.id, d.name, e.name as assistant +from department as d + left join employee as e on e.dept = d.id +where e.post = 'assistant' +``` + +## 选项 + +### A + +```mysql +select d.id, d.name, e.name as assistant +from department as d + cross join employee as e on e.dept = d.id +where e.post = 'assistant' +``` + +### B + +```mysql +select d.id, d.name, e.name as assistant +from department as d + join employee as e on e.dept = d.id +where e.post = 'assistant' +``` + +### C + +```mysql +select d.id, d.name, e.name as assistant +from department as d + cross join employee as e on e.dept = d.id +where e.post = 'assistant' +``` + +### D + +```mysql +select d.id, d.name, e.name as assistant +from employee as e + left join department as d on e.dept = d.id +where e.post = 'assistant' +``` diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/config.json" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/config.json" index 29e2690..8918a71 100644 --- "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/config.json" +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/config.json" @@ -1,10 +1,15 @@ { "node_id": "mysql-7c2331eea3e84eef9464ad4d7c03e2de", - "keywords": [], + "keywords": ["right join", "右连接"], "children": [], - "export": [], + "export": [ + "right_join.json" + ], "keywords_must": [ - ["mysql", "right join"] + [ + "mysql", + "right join" + ] ], "keywords_forbid": [], "group": 0 diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/right_join.json" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/right_join.json" new file mode 100644 index 0000000..81e5fb9 --- /dev/null +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/right_join.json" @@ -0,0 +1,7 @@ +{ + "type": "code_options", + "author": "ccat", + "source": "right_join.md", + "notebook_enable": false, + "exercise_id": "fbfdc54da9d44fbca30f7a293469bf47" +} \ No newline at end of file diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/right_join.md" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/right_join.md" new file mode 100644 index 0000000..151e6fa --- /dev/null +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/3. RIGHT JOIN/right_join.md" @@ -0,0 +1,72 @@ +# 右连接 + +现有部门表 + +```mysql +create table department( + id int primary key auto_increment, + name varchar(256) +) +``` + +和员工表 + +```mysql +create table employee( + id int primary key auto_increment, + dept int, + name varchar(256), + post varchar(16) +) +``` + +公司经过了一轮调整后,员工信息有些混乱,现在 Joe 要写一个查询,找出部门信息写 +错的员工,这些员工所在的部门在 department 表中没有对应记录。 + +## 答案 + +```mysql +select e.id, e.name, e.dept +from department as d + right join employee as e on d.id = e.dept +where d.id is null; +``` + +## 选项 + +### A + +```mysql +select e.id, e.name, e.dept +from employee as e + right join department as d on d.id = e.dept +where e.id is null; +``` + +### B + +```mysql +select e.id, e.name, e.dept +from employee as e + right join department as d on d.id = e.dept +where d.id is null; +``` + +### C + +```mysql +select e.id, e.name, e.dept +from department as d + join employee as e on d.id = e.dept +where d.id is null; +``` + + +### D + +```mysql +select e.id, e.name, e.dept +from department as d + right join employee as e on d.id = e.dept +where d.id is null; +``` \ No newline at end of file diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/config.json" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/config.json" index c946d10..8935b25 100644 --- "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/config.json" +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/config.json" @@ -2,9 +2,14 @@ "node_id": "mysql-fd27af20b046463eac7b2712885ac018", "keywords": [], "children": [], - "export": [], + "export": [ + "cross_join.json" + ], "keywords_must": [ - ["mysql", "cross join"] + [ + "mysql", + "cross join" + ] ], "keywords_forbid": [], "group": 0 diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/cross_join.json" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/cross_join.json" new file mode 100644 index 0000000..5f3f7a0 --- /dev/null +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/cross_join.json" @@ -0,0 +1,7 @@ +{ + "type": "code_options", + "author": "ccat", + "source": "right_join.md", + "notebook_enable": false, + "exercise_id": "3d9153bd05ed41379bcb13eaadc41ef0" +} \ No newline at end of file diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/cross_join.md" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/cross_join.md" new file mode 100644 index 0000000..c7d1637 --- /dev/null +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\277\236\346\216\245\346\237\245\350\257\242/4. CROSS JOIN/cross_join.md" @@ -0,0 +1,83 @@ +# Cross Join + +Joe 需要生成 goods 表 + +```mysql +create table goods( + id int primary key auto_increment, + category varchar(64), + name varchar(256), + price decimal(12, 4), + stock int, + upper_time timestamp +) +``` + +中所有T恤(category为`T-Shirt`)的所有尺寸,尺寸信息在 size 表 + +```mysql +create table size( + id int primary key auto_increment, + name varchar(16) +) +``` + +中,那么这个查询应该是: + +## 答案 + +```mysql +select g.id, g.name, s.name as size +from goods as g + cross join size as s +where g.category = 'T-Shirt'; +``` + +## 选项 + +### A + +```mysql +select g.id, g.name, s.name as size +from goods as g + full join size as s +where g.category = 'T-Shirt'; +``` + +### B + +```mysql +select g.id, g.name, s.name as size +from goods as g + left join size as s +where g.category = 'T-Shirt'; +``` + +### C + +```mysql +select g.id, g.name, s.name as size +from goods as g + left join size as s +where g.category = 'T-Shirt'; +``` + +### D + +```mysql +select g.id, g.name, s.name as size +from goods as g + right join size as s +where g.category = 'T-Shirt'; +``` + +### E + +```mysql +select g.id, g.name, s.name as size +from goods as g + outter join size as s +where g.category = 'T-Shirt'; +``` + + diff --git "a/data/3.MySQL\351\253\230\351\230\266/6.\350\277\220\347\273\264\344\270\216\346\236\266\346\236\204/7.\345\273\266\350\277\237\345\244\215\345\210\266/delay.md" "b/data/3.MySQL\351\253\230\351\230\266/6.\350\277\220\347\273\264\344\270\216\346\236\266\346\236\204/7.\345\273\266\350\277\237\345\244\215\345\210\266/delay.md" index 2404e71..8840de2 100644 --- "a/data/3.MySQL\351\253\230\351\230\266/6.\350\277\220\347\273\264\344\270\216\346\236\266\346\236\204/7.\345\273\266\350\277\237\345\244\215\345\210\266/delay.md" +++ "b/data/3.MySQL\351\253\230\351\230\266/6.\350\277\220\347\273\264\344\270\216\346\236\266\346\236\204/7.\345\273\266\350\277\237\345\244\215\345\210\266/delay.md" @@ -1,6 +1,6 @@ # 延迟复制 -在`主从复制`一节里,Joe实现了一个点对点的主从复制架构,其中standby 是 trade的从库,现在, +在`主从复制`一节里,Joe实现了一个点对点的主从复制架构,其中 standby 是 trade 的从库,现在, Joe 要添加一个名为 backup 的新的复制节点,这个节点的同步进度要比 trade 晚半小时。他应该怎么做? ## 答案 diff --git "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/5. SHOW STATUS/config.json" "b/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/1. SHOW STATUS/config.json" similarity index 100% rename from "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/5. SHOW STATUS/config.json" rename to "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/1. SHOW STATUS/config.json" diff --git "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/1. \345\265\214\345\245\227\346\237\245\350\257\242/config.json" "b/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/1. \345\265\214\345\245\227\346\237\245\350\257\242/config.json" deleted file mode 100644 index 393aa95..0000000 --- "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/1. \345\265\214\345\245\227\346\237\245\350\257\242/config.json" +++ /dev/null @@ -1,9 +0,0 @@ -{ - "node_id": "mysql-4381bed0477f412e80f0509b0e2bb3f9", - "keywords": [], - "children": [], - "export": [], - "keywords_must": [], - "keywords_forbid": [], - "group": 0 -} \ No newline at end of file diff --git "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/6. EXPLAIN/config.json" "b/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/2. EXPLAIN/config.json" similarity index 100% rename from "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/6. EXPLAIN/config.json" rename to "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/2. EXPLAIN/config.json" diff --git "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/2.ORDER BY \344\274\230\345\214\226/config.json" "b/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/2.ORDER BY \344\274\230\345\214\226/config.json" deleted file mode 100644 index 265422f..0000000 --- "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/2.ORDER BY \344\274\230\345\214\226/config.json" +++ /dev/null @@ -1,9 +0,0 @@ -{ - "node_id": "mysql-c140ce4a6f0a4557a3a5ce0b471fd6da", - "keywords": [], - "children": [], - "export": [], - "keywords_must": [], - "keywords_forbid": [], - "group": 0 -} \ No newline at end of file diff --git "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/7. SHOW PROFILE/config.json" "b/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/3. SHOW PROFILE/config.json" similarity index 100% rename from "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/7. SHOW PROFILE/config.json" rename to "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/3. SHOW PROFILE/config.json" diff --git "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/3.\345\210\206\351\241\265\346\237\245\350\257\242\344\274\230\345\214\226/config.json" "b/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/3.\345\210\206\351\241\265\346\237\245\350\257\242\344\274\230\345\214\226/config.json" deleted file mode 100644 index 8669398..0000000 --- "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/3.\345\210\206\351\241\265\346\237\245\350\257\242\344\274\230\345\214\226/config.json" +++ /dev/null @@ -1,9 +0,0 @@ -{ - "node_id": "mysql-6e063c40f1ba485288eba2376097b79c", - "keywords": [], - "children": [], - "export": [], - "keywords_must": [], - "keywords_forbid": [], - "group": 0 -} \ No newline at end of file diff --git "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/8. PT-QUERY-DIGEST\345\210\206\346\236\220\346\237\245\350\257\242/config.json" "b/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/4. PT-QUERY-DIGEST\345\210\206\346\236\220\346\237\245\350\257\242/config.json" similarity index 76% rename from "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/8. PT-QUERY-DIGEST\345\210\206\346\236\220\346\237\245\350\257\242/config.json" rename to "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/4. PT-QUERY-DIGEST\345\210\206\346\236\220\346\237\245\350\257\242/config.json" index 4400a2a..7c04976 100644 --- "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/8. PT-QUERY-DIGEST\345\210\206\346\236\220\346\237\245\350\257\242/config.json" +++ "b/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/4. PT-QUERY-DIGEST\345\210\206\346\236\220\346\237\245\350\257\242/config.json" @@ -1,6 +1,6 @@ { "node_id": "mysql-626f1ca763b344558b3a5eefdb4885a2", - "keywords": [], + "keywords": ["pt-query-digest", "优化"], "children": [], "export": [], "keywords_must": [], diff --git "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/4.GROUP BY\344\274\230\345\214\226/config.json" "b/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/4.GROUP BY\344\274\230\345\214\226/config.json" deleted file mode 100644 index b809fc4..0000000 --- "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/4.GROUP BY\344\274\230\345\214\226/config.json" +++ /dev/null @@ -1,9 +0,0 @@ -{ - "node_id": "mysql-66fc4566eaf34994b072ca83bf79ceb4", - "keywords": ["performance", "优化", "group by"], - "children": [], - "export": [], - "keywords_must": [], - "keywords_forbid": [], - "group": 0 -} \ No newline at end of file diff --git "a/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/9.\345\255\220\346\237\245\350\257\242\344\274\230\345\214\226/config.json" "b/data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/5.\345\255\220\346\237\245\350\257\242\344\274\230\345\214\226/config.json" similarity index 100% rename from "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/9.\345\255\220\346\237\245\350\257\242\344\274\230\345\214\226/config.json" rename to "data/3.MySQL\351\253\230\351\230\266/7.\346\237\245\350\257\242\344\274\230\345\214\226/5.\345\255\220\346\237\245\350\257\242\344\274\230\345\214\226/config.json" diff --git a/data/tree.json b/data/tree.json index f6db35a..6464654 100644 --- a/data/tree.json +++ b/data/tree.json @@ -2448,50 +2448,6 @@ "node_id": "mysql-310130dd922d4e2b832891cc0e157cbf", "keywords": [], "children": [ - { - " 嵌套查询": { - "node_id": "mysql-4381bed0477f412e80f0509b0e2bb3f9", - "keywords": [], - "children": [], - "keywords_must": [], - "keywords_forbid": [], - "group": 0 - } - }, - { - "ORDER BY 优化": { - "node_id": "mysql-c140ce4a6f0a4557a3a5ce0b471fd6da", - "keywords": [], - "children": [], - "keywords_must": [], - "keywords_forbid": [], - "group": 0 - } - }, - { - "分页查询优化": { - "node_id": "mysql-6e063c40f1ba485288eba2376097b79c", - "keywords": [], - "children": [], - "keywords_must": [], - "keywords_forbid": [], - "group": 0 - } - }, - { - "GROUP BY优化": { - "node_id": "mysql-66fc4566eaf34994b072ca83bf79ceb4", - "keywords": [ - "performance", - "优化", - "group by" - ], - "children": [], - "keywords_must": [], - "keywords_forbid": [], - "group": 0 - } - }, { " SHOW STATUS": { "node_id": "mysql-3574b2e5c9ca475789d9d582d7726906", -- GitLab