SQL> create table test(a int ,b varchar2(10));
Table created
SQL> insert into test values (1,'first');
1 row inserted
SQL> commit;
Commit complete
SQL> create unique index idx_test on test(a);
Index created
SQL> insert into test values (1,'first');
insert into test values (1,'first')
ORA-00001: 违反唯一约束条件 (YANG.IDX_TEST)
有哪几种方法可以使这句成功