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

What are the disadvantages of not performing database normalization?

1091


How do I view stored procedures?

912


What does 0 mean in sql?

910


How do you bind variables in pl sql?

1033


How do you define a foreign key?

937


Explain the insert into statements in sql?

932


Which is better varchar or nvarchar?

931


What is a variable in sql?

948


Is it possible to include an insert statement on the same table to which the trigger is assigned?

955


How can a function retun more than one value in oracle with proper example?

1025


What is data control language?

946


how to fetch alternate records from a table? : Sql dba

1050


What is the difference between joins?

974


Why we use join in sql?

911


What is nosql example?

968