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

How to invoke the data pump export utility?

1126


What is a read only transaction in oracle?

975


Explain the use of inctype option in exp command.

982


How to create an oracle database?

980


How can I combine multiple rows into a comma-delimited list in oracle?

1006


What is oracle analytical function?

1042


What do you mean by merge in oracle?

943


What is the difference between a primary key & a unique key?

1045


various types of hints and their usage

2632


What is the difference between postgresql and oracle?

990


Explain about integrity constraint?

1086


What is Virtual Private Database in Oracle?

1024


How to resolve name conflicts between variables and columns?

984


What are the various types of snapshots ?

983


Why packages are used in oracle?

1008