SOHK: 2 OCP: 0Quote:
Originally posted by slimdave
SQL> create table my_table (my_column number
2 constraint xpkmy_table primary key deferrable);
Table created.
SQL> insert into my_table values(1);
1 row created.
SQL> set constraint xpkmy_table deferred;
Constraint set.
SQL> insert into my_table values (null);
1 row created.
SQL> insert into my_table values (null);
1 row created.
SQL> insert into my_table values (null);
1 row created.
SQL> insert into my_table values (1);
1 row created.
SQL> commit;
commit
*
ERROR at line 1:
ORA-02091: transaction rolled back
ORA-01400: cannot insert NULL into ()
Ta Da!
