笛卡尔积和交叉连接有什么区别? [英] What is the difference between Cartesian product and cross join?

查看:29
本文介绍了笛卡尔积和交叉连接有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究 SQL Server 2008,想知道笛卡尔积和交叉连接之间的区别.有人可以帮我澄清一下这个概念吗?

I am working on SQL Server 2008, and wanted to know about what is the differnce between Cartesian Product and Cross Join. Can somebody please help me to clear the concept?

推荐答案

当您进行 Cross join 时,您将获得笛卡尔积.第一个表中的每一行都与第二个表中的每一行相匹配

When you do Cross join you will get cartesian product. Each row in the first table is matched with every row in the second table

这篇关于笛卡尔积和交叉连接有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆