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 / awadhesh

You can place constraints to limit the type of data that can go into a table. Such constraints can be specified when the table when the table is first created via the CREATE TABLE statement, or after the table is already created via the ALTER TABLE statement.

Common types of constraints include the following:

NOT NULL Constraint: Ensures that a column cannot have NULL value.
DEFAULT Constraint: Provides a default value for a column when none is specified.
UNIQUE Constraint: Ensures that all values in a column are different.
CHECK Constraint: Makes sure that all values in a column satisfy certain criteria.
Primary Key Constraint: Used to uniquely identify a row in the table.
Foreign Key Constraint: Used to ensure referential integrity of the data.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write a query with a full outer join in ms sql server?

1159


Do you know what is xpath?

1154


What are xml indexes?

1004


What is mapping schema?

1071


How to run queries with sql server management studio express?

1153


What is cursor in ms sql server?

1204


what are defaults? Is there a column to which a default can't be bound? : Sql server database administration

1182


I create a separate index on each column of a table. What are the advantages and disadvantages of this approach? : Sql server database administration

1137


Is it true, that there is no difference between a rule and a check constraint?

1112


What are the steps you should follow to start sql server in single-user mode?

952


What are rest-style architecture's?

172


Describe how to use linked server?

1079


What is exporting utility?

1086


How can you check the level of fragmentation on a table?

1087


What happens when the SQL Azure database reaches Max Size?

113