Home » Interview » Technology

Explain Check constraint.

Correct Answer: Oracle check constraint is used to ensure that before inserting the data in the database, it is validated and checked for the condition Example: Below, the constraint is that the id has to be between 0 and 1000 create table employee ( id number check (id between 0 and 1000), Name varchar(200) );

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion