Mysql 查询执行过程 大致分为4个阶段吧:
语法分析(sql_parse.cc<词法分析, 语法分析, 语义检查 >)
>>sql_resolver.cc # JOIN.prepare
生成逻辑查询plan(sql_optimizer.cc)
>># JOIN.optimize
生成物理查询plan(sql_planner.cc)
run the explain plan(sql_executor.cc)
退役笔记一#MySQL = lambda sql : sql + ' Source Code 4 Explain Plan ',布布扣,bubuko.com
退役笔记一#MySQL = lambda sql : sql + ' Source Code 4 Explain Plan '
原文地址:http://blog.csdn.net/shine0181/article/details/37969633