auto commit

This commit is contained in:
CyC2018
2019-08-19 00:35:12 +08:00
parent 532a5d8811
commit 069ab100c8
6 changed files with 97 additions and 30 deletions

View File

@ -242,7 +242,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';