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 / sripathi venkata ramesh

I am Sripathi Venkata Ramesh from Gudivada and the answer
is mentioned below

Primary key: A Primary key is a column or group of columns
used to uniquely identify each row in a table like
It defines the column as a Mandatory column.
The data held across the column must be unique.
By default it creates clustered index.
It does not allow null values and duplicate values

Foreign key: A Foreign key is a column or group of columns
whose values are derived from the primary key of some other
table

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of failures that occur in Oracle database?

1076


What is the purpose of save points in oracle database?

1128


How does oracle handle read consistency?

1106


What is the difference between sharding and replication?

1062


How to run the anonymous block again?

1144


What is proxy method?

979


What is a procedure in oracle?

1210


What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statement use an index, even if the index scan may appear to be calculated as more costly?

2086


How to define default values for formal parameters?

1057


What is the difference between Delete, Truncate and Drop in Oracle?

1141


How to connect ms access to oracle servers?

1015


How many anonymous blocks can be defined?

1193


What is a partition in oracle?

1131


how to join query for one source type is oracle another source type is sql server ?

2433


How to convert csv to table in oracle?

1003