From 5e3c9b8d4c9cd2ccfad2d00958c2910f4eeed1bf Mon Sep 17 00:00:00 2001 From: Guide Date: Thu, 13 Jul 2023 23:48:53 +0800 Subject: [PATCH] =?UTF-8?q?[docs=20update]sql=E9=9D=A2=E8=AF=95=E9=A2=98?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=88=B0=E7=BD=91=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/sidebar/index.ts | 11 +++++++++-- docs/database/sql/sql-questions-01.md | 2 +- docs/java/collection/hashmap-source-code.md | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/.vuepress/sidebar/index.ts b/docs/.vuepress/sidebar/index.ts index 8737755f..5b7696ed 100644 --- a/docs/.vuepress/sidebar/index.ts +++ b/docs/.vuepress/sidebar/index.ts @@ -92,7 +92,7 @@ export default sidebar({ "linkedhashmap-source-code", "copyonwritearraylist-source-code", "arrayblockingqueue-source-code", - "priorityqueue-source-code" + "priorityqueue-source-code", ], }, ], @@ -263,7 +263,14 @@ export default sidebar({ icon: "SQL", prefix: "sql/", collapsible: true, - children: ["sql-syntax-summary", "sql-questions-01"], + children: [ + "sql-syntax-summary", + "sql-questions-01", + "sql-questions-02", + "sql-questions-03", + "sql-questions-04", + "sql-questions-05" + ], }, ], }, diff --git a/docs/database/sql/sql-questions-01.md b/docs/database/sql/sql-questions-01.md index 068487d7..16c5443f 100644 --- a/docs/database/sql/sql-questions-01.md +++ b/docs/database/sql/sql-questions-01.md @@ -1,5 +1,5 @@ --- -title: SQL常见面试题总结 +title: SQL常见面试题总结(1) category: 数据库 tag: - 数据库基础 diff --git a/docs/java/collection/hashmap-source-code.md b/docs/java/collection/hashmap-source-code.md index 57484581..8877a451 100644 --- a/docs/java/collection/hashmap-source-code.md +++ b/docs/java/collection/hashmap-source-code.md @@ -262,7 +262,7 @@ HashMap 只提供了 put 用于添加元素,putVal 方法只是给 put 方法 1. 如果定位到的数组位置没有元素 就直接插入。 2. 如果定位到的数组位置有元素就和要插入的 key 比较,如果 key 相同就直接覆盖,如果 key 不相同,就判断 p 是否是一个树节点,如果是就调用`e = ((TreeNode)p).putTreeVal(this, tab, hash, key, value)`将元素添加进入。如果不是就遍历链表插入(插入的是链表尾部)。 -![ ](https://qingcheng-davin.oss-cn-shenzhen.aliyuncs.com/put.png) +![ ](https://oss.javaguide.cn/github/javaguide/database/sql/put.png) ```java