简体   繁体   English

当数据或列当前不在目标表中时,如何将源表中的列添加到目标表中

[英]How to add a column from source table into destination table when the data or column is currently not in the destination table

I have a column that is called "organization" in my source table. 我的源表中有一个名为“organization”的列。 I want to put that column into my destination table that currently doesn't have this data or column.I also want to make sure that each organization goes with the correct data in my table. 我想将该列放入目前没有此数据或列的目标表中。我还希望确保每个组织都在表中使用正确的数据。 I can do this with a join in sql server but I want to physically add that column and data into the destination table where I want have to query a join each time to see that one column. 我可以通过在sql server中加入来执行此操作,但我想将该列和数据物理地添加到目标表中,我希望每次都能查询一个连接以查看该列。

You need to physically add the column to the table. 您需要将列物理添加到表中。 SSIS does not handle this functionality natively - it is an ETL tool. SSIS本身不处理此功能 - 它是一个ETL工具。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL:将数据从源表复制到目标表后,更新源表中的值(来自目标表) - SQL:Updating a value (coming from destination table) in the source table after copying the data from source to destination table 根据SSIS或SQL中的源列在目标表中自动创建列 - Automatically create column in destination table based on source column in SSIS or in SQL 从不存在的源表到目标表的大量数据 - Huge amount of data from a source table where not exists to destination table 如何借助Oracle中的第三张表将数据从源表更新到目标表? - How to update data from source table to Destination table with the help of third table in Oracle? 如何根据列名将数据从 CSV 复制到目标表? - How can I copy data from CSV to a destination table based on column names? SSIS。 如何将具有 nvarchar(max) 类型列的表中的数据保存到原始文件目标 - SSIS. How to save data from a table having column with type nvarchar(max) to raw file destination 将数据从一个表插入到另一个表并将目标表的“状态”列设置为 1 的 SQL 查询 - Sql query to insert data from one table to another and set 'status ' column of destination table to 1 需要在目标oledb表之后添加substring()列 - Need to add substring() column after destination oledb table 在ssis包中将数据从源表复制到目标表时,如何更新现有记录 - how to update existing records while copying data from source table to destination table in ssis package 在PostgreSQL中,如何插入并使用目标表的自动增量列 - In PostgreSQL, how to INSERT INTO and use destination table's autoincrement column
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM