Overview
In this article discuss about the Constraints in SQL. Why it is required for any developer before create the table or fully database for our projects or application. Why it's very import phase for any type of database define or design for a our application.
Constraints
It's define some condition when we perform any DML Operation(Data Manipulation Language Syntax like Insert new Record,Update New Record and also perform the Delete operation) in the database.
Suppose we have a master data table and we want to delete some rows of master table if any row or rows inserted childeren table behalf of this master table records if deletion is perform so childeren table data is waste or ambiguous data it's contains memory.
So how to prevent the this type of activity inside the database through Constraint.
below some constraint so one by one discuss.
SQL Constraints
- NOT NULL
- Unique
- Primary Key
- Foreign Key
- Check
- Default
0 Comments
thanks for your suggestion and improving quality of the content