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

What is sql data?

1034


Write a query to find the names of users that begin with "um" in sql?

1045


Does inner join return duplicate rows?

1039


How many types of triggers exist in pl/sql?

1134


What is the difference between rename and alias?

1390


what is collation? : Sql dba

1205


What is offset and limit in sql?

1105


Why do we use cursors?

1043


what are myisam tables? : Sql dba

1077


name 3 ways to get an accurate count of the number of records in a table? : Sql dba

1116


How do I view a view in sql?

994


What is record variable?

1041


How to return multiple rows from the stored procedure?

1014


what is single byte over head in oracle..?

2457


What is mutating error in pl sql?

1066