0
我想做一個OLE DB命令來添加行到我的表只有當主鍵字段不存在於同一個表內。這是我到目前爲止:Sql Server SSIS條件插入
insert into employee
(employee_id, first_name, middle_initial, last_name) /*fields of the employee table*/
values (employeedID, firstName, mInitial, lastName) /*columns from my input */
/* only insert into the table where employee_ID is not already in the table */
where ((select employee_id from employee where employee_id = employeeID) = NULL);
基本上我想要的是一個條件插入語句。
謝謝!
是否有原因在目標之前不使用查找轉換來清除現有行? – billinkc