In MySQL queries, why use join instead of where?

前端 未结 6 729
孤独总比滥情好
孤独总比滥情好 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 18:08

    Most people tend to find the JOIN syntax a bit clearer as to what is being joined to what. Additionally, it has the benefit of being a standard.

    Personally, I "grew up" on WHEREs, but the more I use the JOIN syntax the more I'm starting to see how it's more clear.

提交回复
热议问题