输入banner图图片脚本导航/分类

MySQL关联left join 条件on与where不同,很实用,但要慎用



我们知道标准查询关键字执行顺序为 from->where->group by->having->order by

left join 是在from范围类所以 先on条件筛选表,然后两表再做left join。

而对于where来说在left join结果再次筛选。

 

本文转载自:http://gaoerpeng777.blog.163.com/blog/static/9437945020127633739771/

MySQL关联left join 条件on与where不同,很实用,但要慎用

标签: