0
OLE DB 명령을 사용하여 기본 테이블 필드가 같은 테이블에 이미 존재하지 않을 때만 내 테이블에 행을 추가하려고합니다. 이것은 내가 지금까지 가지고있는 것입니다 :Sql 서버 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