6
Oracle에서는 지연된 제약 조건이 커밋 시점에서만 검사됩니다.열이 null 연기 할 수 없음
NOT NULL 제약 조건의 경우 DEFERRABLE 절의 의미는 무엇입니까?
create table test(a number not null deferrable, b number);
insert into test(a,b) values (222, 111);
commit;
예를 들어 은 이러한 진술 후 다음 코드는
update test set a = null where b = 111;
delete test where b = 111;
commit;
일을 것이라고 생각하지만 그렇지 않습니다.
두 정의의 차이점은 무엇입니까?
create table test1(a number not null deferrable, b number);
create table test2(a number not null, b number);
네, 맞습니다. INITIALLY DEFERRED를 사용하면 코드가 작동합니다. 감사. –