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 primary key & foreign key?

Answer Posted / abhishek ranjan

The main diference between primary key and the foreign key is that the primary key is a column or a set of columns that can be used to uniquely identify a row in a table while the foreign key is a column or a set of columns that refer to a primary key or a candidate key of another table. Foreign key mainly provides a method to link information in several tables. Another difference is that a table can have a single primary key, but it can have multiple foreign keys that can reference different tables.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to handle exceptions in post production

1362


 What are the oracle DML commands possible through an update strategy?

1006


Can we write insert statement in function in oracle?

1027


What are internal user account in oracle?

950


How to do clean up if create database failed?

975


What is the difference between formal parameters and actual parameters?

1006


What is primefaces used for?

1009


what is the difference between restoring and recovering?

965


What is ceil and floor in oracle?

1011


How to use like conditions in oracle?

996


Will you be able to store pictures in the database?explain.

931


How different is ms access and oracle?

990


what is the use of triggers in Java program? I mean where do we use triggers in Java programming?

2130


Is there an oracle sql query that aggregates multiple rows into one row?

934


How to pass parameters to procedures in oracle?

997