Difference between JOIN and INNER JOIN

前端 未结 6 1911
离开以前
离开以前 2020-11-22 06:31

Both these joins will give me the same results:

SELECT * FROM table JOIN otherTable ON table.ID = otherTable.FK

vs

SELECT *         


        
6条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 06:52

    They are functionally equivalent, but INNER JOIN can be a bit clearer to read, especially if the query has other join types (i.e. LEFT or RIGHT or CROSS) included in it.

提交回复
热议问题