오라클 10g에서 연기 가능한 고유 기능 인덱스를 만들고 싶습니다.Oracle에서 연기 가능한 고유 한 기능 색인을 가질 수 있습니까?
create unique index LIST_ITEM_ENTRY_NO_UNIQ
on LIST_ITEM (case status when 'cancel' then null else LIST_KEY end,
case status when 'cancel' then null else ENTRY_NO end);
나는 연기 고유 인덱스를 생성하는 방법을 알고 :
내가 고유 기능 인덱스를 생성하는 방법을 알고
:이 두 가지를 알고alter table LIST_ITEM add constraint LIST_ITEM_ENTRY_NO_UNIQ
unique (LIST_KEY,ENTRY_NO) deferrable initially deferred;
을, 나는이 시도
alter table LIST_ITEM add constraint LIST_ITEM_ENTRY_NO_UNIQ
unique (case STATUS when 'cancel' then null else LIST_KEY end,
case STATUS when 'cancel' then null else ENTRY_NO end)
deferrable initially deferred;
하지만 "ORA-00904 : 잘못된 식별자"오류가 발생합니다. 구문이 잘못되었거나 오라클이 연기 가능한 기능 색인을 지원하지 않습니다. 누군가 해결책이나 확실한 답을 제게 줄 수 있습니까?
글쎄, 나는 확실한 답을 구했다. 분명히 이것이 내가 원하는 바가 아니더라도 그것이 다. ;) – Chris