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 and foreign key?

Answer Posted / gaytriom

A primary key is a column which uniquely identifies the
records in a table. In a broad sense, a primary key is the
mixture of a unique key and an index: A collumn with a primary
key is indexed to deliver a faster query, and doesn't allow
duplicate values to ensure specific data.

A foreign key is a column (the child collumn) in a table which
has a corresponding relationship and a dependency on another
collumn (the parent collumn) that is usually in a different
table. Parent collumns can have multiple child collumns, but a
child collumn can only have one parent collumn.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Elaborate differentiation between ViewState and SessionState?

1067


Can you use Web API with ASP.NET Web Form?

1139


Disable browser cache for entire ASP.NET website?

1186


Are cookies client side or server side?

882


What is asp.net mvc? : asp.net mvc

1085


Is there any property names “isnavigating”?

1029


Can we use a static function with a non-static variable?

951


what are the ihttphandler and ihttphandlerfactory interfaces ?

932


What do you mean by query string?

926


Can you explain composite pattern?

1006


What are the various ways to send content from one page to another?

904


In which event of the page life cycle, is the viewstate available?

966


What is redirectpermanent in asp.net?

1049


Which method do you use to enforce garbage collection in .net?

942


there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?

3004