当前位置:Gxlcms > 数据库问题 > MySQL关联left join 条件on与where不同,很实用,但要慎用

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

时间:2021-07-01 10:21:17 帮助过:4人阅读



我们知道标准查询关键字执行顺序为 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不同,很实用,但要慎用

标签:

人气教程排行