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 / nitin

Primary key uniquely identified a record in a table and dont have null values. Also when we create primary key an index is automatically created for primary key.
On the other hand foreign key is used for referential integrity, foreign key can points to primary key in other table and moreover index is not created for foreign key.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run a script in sql developer?

896


What is inner join in sql?

999


What are the different types of a subquery?

980


How delete a row in sql?

923


Define select, insert, create, delete, update, drop keywords

993


How many aggregate functions are available there in sql?

928


how to rename an existing table in mysql? : Sql dba

1002


What are triggers in sql?

971


What is $$ in sql?

939


how do you login to mysql using unix shell? : Sql dba

1015


What is set serveroutput on?

1086


what is sql in mysql? : Sql dba

1120


What is the difference between delete, truncate and drop command?

1056


How to write html code in pl sql?

1054


Is inner join same as self join?

1059