Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在这里提到了以下查询
SELECT * FROM Table1 t1 LEFT JOIN Table2 t2 ON t1.id = t2.id WHERE t1.user='bob';
Mosty Mostacho 表示 WHERE 在 JOIN 之前执行。
但如果其他来源是这样的,它会说“通常,一旦两个表已经连接,过滤就会在 WHERE 子句中处理”。
所以我很困惑哪一个是对的?我可以用EXPLAIN检查订单吗?如果是,如何?我不明白解释输出中的哪个字段说明了订单。