1.

Explain Constraints in SQL?

Answer»

It is a rule USED to limit the TYPE of data that can insert into a table, to MAINTAIN the integrity and accuracy of the data inside the table.

It can be divided into two types.

  • Column level constraints
  • Table-level constraints

These are the most common constraints that can be APPLIED to a table.

  • NOT NULL
  • DEFAULT
  • UNIQUE
  • PRIMARY KEY
  • FOREIGN KEY ETC


Discussion

No Comment Found