In MySQL queries, why use join instead of where?

前端 未结 6 735
孤独总比滥情好
孤独总比滥情好 2020-11-22 17:34

It seems like to combine two or more tables, we can either use join or where. What are the advantages of one over the other?

6条回答
  •  爱一瞬间的悲伤
    2020-11-22 17:59

    Explicit joins convey intent, leaving the where clause to do the filtering. It is cleaner and it is standard, and you can do things such as left outer or right outer which is harder to do only with where.

提交回复
热议问题