Skip to content

Instantly share code, notes, and snippets.

@tistaharahap
Last active August 29, 2016 13:08
Show Gist options
  • Save tistaharahap/e86ced81a9f7553b8a7bd6b43773bcac to your computer and use it in GitHub Desktop.
Save tistaharahap/e86ced81a9f7553b8a7bd6b43773bcac to your computer and use it in GitHub Desktop.
MariaDB [fun]> EXPLAIN SELECT * FROM users WHERE first_name = 'Martin' AND last_name = 'David';
+------+-------------+-------+------+----------------------+----------------------+---------+-------------+------+--------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+------+-------------+-------+------+----------------------+----------------------+---------+-------------+------+--------------------------+
| 1 | SIMPLE | users | ref | first_and_last_names | first_and_last_names | 106 | const,const | 1 | Using where; Using index |
+------+-------------+-------+------+----------------------+----------------------+---------+-------------+------+--------------------------+
1 row in set (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment