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

What is the Main Difference between ACCESS and SQL SERVER?

1137


What does null mean?

989


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

1138


what is create database syntax? : Sql server database administration

1107


Define a cross join?

1029


What is data modeling and Reterminal integrity?

1955


What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?

1136


If a stored procedure is taking a table data type, how it looks?

6449


What are scalar functions?

1001


What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?

1026


what is sql server? : Sql server database administration

991


How can you set the threshold at which sql server will generate keysets asynchronously?

990


What is the stored procedure?

1010


How to identify current user in ssrs report?

403


How to loop through result set objects using odbc_fetch_row()?

978