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 the difference between the Primary and Foreign key?

Answer Posted / slokh

Primary key does not contain NULL or duplicate values.
whereas Foreign key accepts duplicate values but not null
values.
Primary key states the Entity integrity constraint, which
says that every row in a table is unique.
Foreign key states the referential integrity constraint,
that says that you can only insert values that is present
in the primary of the parent table.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I tell if sql is running?

1076


how many triggers are allowed in mysql table? : Sql dba

1081


What is meant by cursor in sql?

1011


How to assign sql query results to pl sql variables?

1091


What is column?

1001


What is procedure explain with example?

972


Do stored procedures prevent sql injection?

974


How many triggers can be applied on a table?

944


Why stored procedure is better than query?

956


How to make a copy values from one column to another in sql?

1047


Is pl sql a scripting language?

1041


Do prepared statements prevent sql injection?

957


tell me about various levels of constraint. : Sql dba

1043


What is the best sql course?

993


How many sql databases can you have on one server?

1097