mysql - Using SQL EXPLAIN to gain information about a query -


i'm looking @ 2 queries i've finished, , i'm trying decide 1 should implement. main difference between 2 sql explain select_type. query #1 select_type 3 rows simple. query #2 primary. else same except possible keys in query #2. question are...

  1. what difference between simple , primary , there other select_type's
  2. which select_type should try accomplish majority of queries performance standpoint (guessing answer depends i'll ask anyway)
  3. any other pointers on how use explain gain valuable data query , decide take there


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -