Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / shreevats

Constraints are the conditions which allows to restrict the invalid or inconsistent data in the tables.

Types of Constraints
1.Not null:Not null make any column as mandatory and it will not allows the null values.
2.Unique:It will not allows duplicate values.
3.Primary Key:A PK is used to identify a record uniquely in a table.
PK=UNIQUE+NOT NULL
4.Foreign Key or Referential Integrity constraint
:It creates the relationship between any two tables.
5.Check: It is used for enforcing business validation.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the source of constraints?

979


How will you make an attribute not process? : sql server analysis services, ssas

1160


What will be the maximum number of indexes per table?

1019


Explain trigger classes i.e. Instead of and after trigger?

919


Tell me the use of keyword with encryption. Create a store procedure with encryption?

1062


What do you mean by data manipulation language?

1063


Does server sql treat char as a variable-length or fixed-length column?

1091


Do you know how to make remote connection in database?

1008


Benefits of Stored Procedures?

1040


What are different types of raid configurations? : SQL Server Architecture

1134


Give an example of why you would want to denormalize a database

1031


How to use column default values in insert statements in ms sql server?

1103


Explain the difference between clustered and non-clustered index?

970


How do I connect to sql server database?

1068


How do I find query history in sql server?

989