摘要: select A . id , A . title , B . title from jos_content A left join jos_categories B on A . catid = B . id left join jos_sections C on A . se 阅读全文
posted @ 2021-01-06 17:50 飞龙在生 阅读(218) 评论(0) 推荐(0)
摘要: 第一条语句 explainselect * from tb_wm_shop where is_delete != 1 and is_authentication = 1 ORDER BY create_time DESC 大家应该知道使用order by的 字段要使用索引,这条语句中create_t 阅读全文
posted @ 2021-01-06 17:31 飞龙在生 阅读(3377) 评论(0) 推荐(0)
摘要: Using temporary Using temporary表示由于排序没有走索引、使用union、子查询连接查询、使用某些视图等原因(详见https://dev.mysql.com/doc/refman/5.6/en/internal-temporary-tables.html),因此创建了一个 阅读全文
posted @ 2021-01-06 17:13 飞龙在生 阅读(2433) 评论(0) 推荐(0)