Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. MariaDB [babynames]> select count(*) from pop1980 where firstname='Jennifer';
  2. +----------+
  3. | count(*) |
  4. +----------+
  5. | 58617 |
  6. +----------+
  7.  
  8. MariaDB [babynames]> select count(*) from pop1980 where firstname='Jennice';
  9. +----------+
  10. | count(*) |
  11. +----------+
  12. | 7 |
  13. +----------+
  14. 1 row in set (1.17 sec)
  15.  
  16. MariaDB [babynames]> analyze select count(*) from pop1980 where firstname='Jennifer';
  17. +------+-------------+---------+------+---------------+------+---------+------+---------+------------+----------+------------+-------------+
  18. | id | select_type | table | type | possible_keys | key | key_len | ref | rows | r_rows | filtered | r_filtered | Extra |
  19. +------+-------------+---------+------+---------------+------+---------+------+---------+------------+----------+------------+-------------+
  20. | 1 | SIMPLE | pop1980 | ALL | NULL | NULL | NULL | NULL | 3444156 | 3444156.00 | 4.69 | 1.70 | Using where |
  21. +------+-------------+---------+------+---------------+------+---------+------+---------+------------+----------+------------+-------------+
  22. 1 row in set (1.21 sec)
  23.  
  24. MariaDB [babynames]> analyze select count(*) from pop1980 where firstname='Jennice';
  25. +------+-------------+---------+------+---------------+------+---------+------+---------+------------+----------+------------+-------------+
  26. | id | select_type | table | type | possible_keys | key | key_len | ref | rows | r_rows | filtered | r_filtered | Extra |
  27. +------+-------------+---------+------+---------------+------+---------+------+---------+------------+----------+------------+-------------+
  28. | 1 | SIMPLE | pop1980 | ALL | NULL | NULL | NULL | NULL | 3444156 | 3444156.00 | 4.69 | 0.00 | Using where |
  29. +------+-------------+---------+------+---------------+------+---------+------+---------+------------+----------+------------+-------------+
  30. 1 row in set (1.21 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement