CROSS JOIN vs INNER JOIN in SQL

前端 未结 12 1061
醉酒成梦
醉酒成梦 2020-11-22 03:16

What is the difference between CROSS JOIN and INNER JOIN?

CROSS JOIN:

SELECT 
    Movies.CustomerID, Movie         


        
12条回答
  •  星月不相逢
    2020-11-22 03:53

    The inner join will give the result of matched records between two tables where as the cross join gives you the possible combinations between two tables.

提交回复
热议问题