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 if we write return in procedure?

1430


What is output spooling in sql*plus?

1036


When do we use triggers?

1081


Which is faster subquery or join?

1218


Why is there a need for sqlcode and sqlerrm variables?

1049


what is data integrity? : Sql dba

1038


What is offset and limit in sql?

1059


What is rollback?

1116


What is meant by truncate in sql?

1068


What is primary key secondary key alternate key candidate key?

1037


how to use 'mysql' to run sql statements? : Sql dba

1053


How can you fetch common records from two tables?

1063


What is a scalar value in sql?

1073


What is execution plan in sql?

1049


what is sql profiler? : Sql dba

1048