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

Primary key does not contain NULL or duplicate values.
whereas Foreign key accepts duplicate values but not null
values.
Primary key states the Entity integrity constraint, which
says that every row in a table is unique.
Foreign key states the referential integrity constraint,
that says that you can only insert values that is present
in the primary of the parent table.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various levels of constraints?

1126


what is acid property in database? : Sql dba

1031


What are system versioned tables?

1031


What is date functions?

1034


What are the benefits of triggers?

1174


What is memory optimized table?

1049


What is sql architecture?

1056


How consistent is the view of the data between and within multiple sessions, transactions or statements ?

2226


How many joins can you have in sql?

939


What is pl sql block structure?

1044


What is rename in sql?

977


Can you upgrade sql express to full sql?

1073


Can you have more than one key in a database?

937


Why cannot I use bind variables in ddl/scl statements in dynamic sql?

1211


What are sql triggers used for?

997