Oracle Constraints
Oracle Constraints
Example :-
Below insert statement will validate the above not null constraint
SQL> insert into person values(1,null);
insert into person values(1,null)
*
ERROR at line 1:
ORA-01400: cannot insert NULL into (“PERSON”.”PNAME”)
2. UNIQUE Constraint
UNIQUE Constraint column should have either unique values or null values
across the table.
Examples :-
Advertisements
REPORT THIS AD
1 row created.
1 row created.
1 row created.
Examples :-
Foreign Key Constraint used to relate two or more table and values in one table
to match values in another table.
Examples :-
5. CHECK Constraint