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 are various constraints used in SQL?

Answer Posted / rajshri.20

SQL constraints are used to specify rules for the data in a table.

NOT NULL - Indicates that a column cannot store NULL value
UNIQUE - Ensures that each row for a column must have a unique value
PRIMARY KEY - A combination of a NOT NULL and UNIQUE. Ensures that a column (or combination of two or more columns) have an unique identity which helps to find a particular record in a table more easily and quickly
FOREIGN KEY - Ensure the referential integrity of the data in one table to match values in another table
CHECK - Ensures that the value in a column meets a specific condition
DEFAULT - Specifies a default value when specified none for this column

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum limit on the number of columns in a table?

1149


What are the different types of record groups in oracle? Explain each of them

1069


How oracle handles dead locks?

1129


15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

2352


WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?

2245


What is difference between truncate and delete?

1093


How can you use check constraints for self referential integrity?

1013


How to experiment a data lock in oracle?

1108


What is a nvl function?

1092


What's dateware house and what's clustor with practicle example

2232


Please explain drop constraint oracle?

1155


How to Truncate Table in Oracle

1210


How to see free space of each tablespace?

1080


What is the data pump import utility?

1074


What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statement use an index, even if the index scan may appear to be calculated as more costly?

2139