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 / ansul singh

Primary key is unique key but Foreign key always refers to
primary key.
Primary key is the parent & Foreign key is the child.
Primary key is unique, Primary key is not null and
Foreign key is null, Foreign key reference as primary key
is another table.
Primary key will not allow "Null values" & "Duplication
values",
Foreign key will allow "Null values & "Duplicate values" &
it refers to a primary key is another table.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain database link?

1112


What is set verify off in oracle?

1096


How can I combine multiple rows into a comma-delimited list in oracle?

1056


Explain the use of tables option in exp command.

1115


What happens to the current transaction if the session is ended?

1094


What is the use of oracle?

1027


How many types of synonyms in Oracle?

1117


What is a subquery in oracle?

1109


What are the ansi data types supported in oracle?

944


How to view the tablespaces in the current database?

973


Explain a data segment?

1064


Why is oracle used?

936


Does facebook use oracle?

1029


What is tns service name?

1122


How to increment dates by 1 in oracle?

1071