You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note 1003 select `test`.`t1`.`i1` AS `i1`,`test`.`t1`.`v1` AS `v1`,`test`.`t2`.`i2` AS `i2`,`test`.`t2`.`v2` AS `v2`,`test`.`t3`.`i3` AS `i3`,`test`.`t3`.`v3` AS `v3` from `test`.`t1` join `test`.`t2` join `test`.`t3` where ((`test`.`t3`.`v3` = 4) and (`test`.`t1`.`i1` = `test`.`t3`.`i3`) and (`test`.`t2`.`i2` = `test`.`t3`.`i3`))
2331
+
# This should have the same join order like the query above:
2332
+
EXPLAIN EXTENDED
2333
+
SELECT * FROM
2334
+
(SELECT t1.i1 as i1, t1.v1 as v1,
2335
+
t2.i2 as i2, t2.v2 as v2,
2336
+
t3.i3 as i3, t3.v3 as v3
2337
+
FROM t1 JOIN t2 on t1.i1 = t2.i2
2338
+
LEFT JOIN t3 on t2.i2 = t3.i3
2339
+
WHERE t1.i1 = t2.i2
2340
+
AND 1 = 1
2341
+
) as w2
2342
+
WHERE v3 = 4;
2343
+
id select_type table type possible_keys key key_len ref rows filtered Extra
Note 1003 select `test`.`t1`.`i1` AS `i1`,`test`.`t1`.`v1` AS `v1`,`test`.`t2`.`i2` AS `i2`,`test`.`t2`.`v2` AS `v2`,`test`.`t3`.`i3` AS `i3`,`test`.`t3`.`v3` AS `v3` from `test`.`t1` join `test`.`t2` join `test`.`t3` where ((`test`.`t3`.`v3` = 4) and (`test`.`t1`.`i1` = `test`.`t3`.`i3`) and (`test`.`t2`.`i2` = `test`.`t3`.`i3`))
0 commit comments