Multiple Table Select vs. JOIN (performance)

后端 未结 2 966
花落未央
花落未央 2020-12-02 12:58

When selecting from multiple tables in MySQL, both of the following queries return the same result set.

Is one of these queries better or more efficient tha

2条回答
  •  我在风中等你
    2020-12-02 13:43

    They are the same, but with a different syntax. So you shouldn't expect any performance difference between the two syntaxes. However the the last syntax(ANS SQL-92 syntax) is the recommended, see these for more details:

    • Bad habits to kick : using old-style JOINs.
    • SQL JOIN: is there a difference between USING, ON or WHERE?

提交回复
热议问题