主キー フィールドが同じテーブル内にまだ存在しない場合にのみ、テーブルに行を追加する OLE DB コマンドを実行しようとしています。これは私がこれまでに持っているものです:
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);
基本的に私が欲しいのは条件付き挿入ステートメントだけです。
ありがとう!