Oracle unique constraint and unique index
问题 Could someone clarify what is the purpose of having unique index without unique constraint (Oracle)? For example, create table test22(id int, id1 int, tmp varchar(20)); create unique index idx_test22 on test22(id); insert into test22(id, id1, tmp) values (1, 2, 'aaa'); // ok insert into test22(id, id1, tmp) values (1, 2, 'aaa'); // fails, ORA-00001: unique // constraint (TEST.IDX_TEST22) violated So far it looks like there is a constraint. But create table test33(id int not null primary key,