From 96ab659bf42796dda2d3b86ba214a0d5c645f39f Mon Sep 17 00:00:00 2001 From: Raymon Date: Mon, 2 Jul 2018 12:50:53 +0800 Subject: [PATCH] Update MySQL.md typo --- notes/MySQL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/MySQL.md b/notes/MySQL.md index e460d98a..13bf5993 100644 --- a/notes/MySQL.md +++ b/notes/MySQL.md @@ -351,7 +351,7 @@ do { - 查询本身效率也可能会有所提升。例如下面的例子中,使用 IN() 代替连接查询,可以让 MySQL 按照 ID 顺序进行查询,这可能比随机的连接要更高效。 ```sql -SELECT * FROM tab +SELECT * FROM tag JOIN tag_post ON tag_post.tag_id=tag.id JOIN post ON tag_post.post_id=post.id WHERE tag.tag='mysql';