Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 SQL Server 数据库中有两个表(Table1和Table2),我需要创建第三个表(Table3),其中包含两个表中的所有列,当然还有它们的数据。Table1的每一行都与Table2的每一行相关联。
此操作是笛卡尔积,但显然它在 SSIS 中不可用。有人知道该怎么做吗?
我在网上读到,使用笛卡尔积在性能方面不是一个好习惯,但Table2只有一行,这意味着Table3的行数将与Table1一样多
这是一个链接,其中解释了使用SSIS获得笛卡尔积的两种方法:
http://sqlserverpedia.com/blog/sql-server-bloggers/performing-a-cross-join-cartesian-product-in-ssis/