create table WillDeleteTable(
PKey1 number(4),
PKey2 number(4),
PKey3 number(4),
Col1 char(4),
Col2 char(4),
primary key(PKey1,PKey2,PKey3));
insert into WillDeleteTable values(1000,2000,1,'AAAA','BBBB');
insert into WillDeleteTable values(1000,3000,2,'AAAA','BBBB');
insert into WillDeleteTable values(1000,4000,3,'AAAA','BBBB');
insert into WillDeleteTable values(2000,1000,1,'AAAA','CCCC');
insert into WillDeleteTable values(3000,2000,2,'AAAA','CCCC');
insert into WillDeleteTable values(3000,2000,3,'AAAA','CCCC');
commit;
--■■■andとorを使う方法■■■
delete from WillDeleteTable
where (PKey1 = 1000 and PKey2 = 3000 and PKey3 = 2)
or (PKey1 = 2000 and PKey2 = 1000 and PKey3 = 1)
or (PKey1 = 3000 and PKey2 = 2000 and PKey3 = 2);
--■■■ベクトルで考える方法■■■
delete from WillDeleteTable
where (PKey1,PKey2,PKey3) in((1000,3000,2),(2000,1000,1),(3000,2000,2));