Pros / Cons of MySql JOINS

前端 未结 4 2136
余生分开走
余生分开走 2021-02-08 03:56

When I\'m selecting data from multiple tables I used to use JOINS a lot and recently I started to use another way but I\'m unsure of the impact in the long run.

Examples

4条回答
  •  失恋的感觉
    2021-02-08 04:16

    I personally feel the explicit join syntax (A JOIN B, A LEFT JOIN B) is preferable. Both because it's more explicit about what you're doing, and because if you use implicit join syntax for inner joins, you still have to use the explicit syntax for outer joins and thus your SQL formatting will be inconsistent.

提交回复
热议问题