Guest User

Untitled

a guest
May 23rd, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. mysql> explain SELECT * FROM user_test AS u1 LEFT OUTER JOIN user_test AS u2 ON u1.date_of_birth = u2.date_of_birth WHERE u1.first_name = 'cee' ;
  2. +----+-------------+-------+------+---------------------+---------------------+---------+---------------------------+------+-----------------------+
  3. | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
  4. +----+-------------+-------+------+---------------------+---------------------+---------+---------------------------+------+-----------------------+
  5. | 1 | SIMPLE | u1 | ref | first_name_index | first_name_index | 152 | const | 44 | Using index condition |
  6. | 1 | SIMPLE | u2 | ref | date_of_birth_index | date_of_birth_index | 4 | rap_test.u1.date_of_birth | 9 | NULL |
  7. +----+-------------+-------+------+---------------------+---------------------+---------+---------------------------+------+-----------------------+
  8. 2 rows in set (0.00 sec)
Add Comment
Please, Sign In to add comment