create table ValTable(
SortKey number(2) primary key,
Val number(1) check (Val in(0,1)) not null);
--テストパターン1
delete from ValTable;
insert into ValTable(SortKey,Val)
select 10,0 from dual union
select 13,0 from dual union
select 16,1 from dual union
select 19,0 from dual union
select 22,0 from dual union
select 23,1 from dual union
select 24,0 from dual union
select 26,0 from dual union
select 29,0 from dual union
select 32,0 from dual union
select 33,1 from dual;
commit;
--テストパターン2
delete from ValTable;
insert into ValTable(SortKey,Val)
select 10,1 from dual union
select 14,1 from dual union
select 16,0 from dual union
select 17,1 from dual;
commit;