MySQL Join clause vs WHERE clause

前端 未结 4 1631
深忆病人
深忆病人 2020-12-15 19:13

What\'s the difference in a clause done the two following ways?

SELECT * FROM table1 INNER JOIN table2 ON (
    table2.col1 = table1.col2 AND
    table2.memb         


        
4条回答
  •  被撕碎了的回忆
    2020-12-15 20:01

    There's not really much of a difference in the situation you describe; in a situation with multiple complex joins, my understanding is that the first is somewhat preferential, as it will reduce the complexity somewhat; that said, it's going to be a small difference. Overall, you shouldn't notice much of a difference in most if not all situations.

提交回复
热议问题