Forum

What are SQL constr...
 
Notifications
Clear all

What are SQL constraints?


kumar BI
Posts: 12
 kumar BI
Topic starter
(@kumar BI)
Joined: 1 year ago

SQL Constraints

Topic Tags
1 Reply
Ram DBA
Posts: 47
 Ram DBA
(@Ram DBA)
Joined: 1 year ago

SQL constraints are the set of rules that impose some restrictions while insertion, deletion, or updating of data in the databases.

In SQL we have both column level as well as table level constraints which are applied at columns and tables respectively. Some of the constraints in SQL are as follows. 

  • Primary Key
  • Foreign Key
  • Unique Key
  • Not NULL
  • DEFAULT
  • CHECK
  • Index
Reply
Share: