Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. explain
  2. SELECT * FROM t1 AS t1_outer WHERE EXISTS (
  3. SELECT * FROM t2 WHERE i2 IN (
  4. SELECT i3 FROM t3 INNER JOIN t1 AS t1_inner ON (t1_inner.c1 = c3 ) WHERE t1_inner.i1 < t1_outer.i1 ) );
  5.  
  6. id select_type table type possible_keys key key_len ref rows Extra
  7. 1 PRIMARY t1_outer ALL NULL NULL NULL NULL 5 Using where
  8. 2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
  9. 2 DEPENDENT SUBQUERY t3 ref i3 i3 5 test.t2.i2 2 Start temporary; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
  10. 2 DEPENDENT SUBQUERY t1_inner ALL c1 NULL NULL NULL 5 Using where; End temporary; Using join buffer (incremental, BNL join)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement