What is the default MySQL JOIN behaviour, INNER or OUTER?

后端 未结 2 1744
后悔当初
后悔当初 2020-11-29 19:47

So I\'ve been looking through the internet the last hour, reading and looking for the definitive answer to this simple question.

What is the default JOIN in MySQL?

2条回答
  •  臣服心动
    2020-11-29 20:25

    These are all equivalent, and also equal to, CROSS JOIN.

    There are some differences between using comma and [INNER | CROSS] JOIN syntax, which might be important when joining more tables. Pretty much all you need to know is described here in the MySQL JOIN documentation.

提交回复
热议问题