what is Constraint? How many types of constraints in SQL ?

Answer Posted / vinod

Constraints are used to restrict the insertion of unwanted data.
Using constraints you can maintain data integrity by preventing invalid data being entered.

Constraints are Five type
Primary key
Unique Key
Foreign Key
Not Null
Check

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why and when do stored procedure recompile?

714


What is Dependency Injection and provide example?

825


Is BCNF better than 2NF & 3NF? Why?

811


How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?

806


What is the difference between DATETIME2 and DATETIME?

812


What area unit the various kinds of info compression introduced in sql server 2008?

773


How can sql server instances be hidden? : sql server security

757


Explain about builtinadministrator?

785


What is the difference between count and distinct count?

635


What is normalization 1nf 2nf 3nf?

805


What is the difference between join and inner join?

736


Explain the third normal form(3nf)?

705


What does COMMIT command do?

777


How to convert numeric values to integers in ms sql server?

706


What is user defined stored procedures?

724