解析顺序
并不按指令顺寻解析
解析优化
ex. select * from account where name = ' '
select * from account where 1 = 1 // 优化器会把where后面的判断条件给删掉
ex2.InnerJoin和子查询一样
子查询: explain select * from account t where t.id in (select t2.id from account t2)
解析后就变成了inner join
ex. select * from account where name = ' '
select * from account where 1 = 1 // 优化器会把where后面的判断条件给删掉
ex2.InnerJoin和子查询一样
子查询: explain select * from account t where t.id in (select t2.id from account t2)
解析后就变成了inner join
本文标题:MySql逻辑架构 - 解析查询
本文链接:https://www.haomeiwen.com/subject/tbldahtx.html
网友评论