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

How to export several tables together?

983


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

1029


How to define an external table with a text file?

1018


what is the difference between restoring and recovering?

961


How to export your own schema?

966


How to update values in a table in oracle?

957


Is there a combination of "like" and "in" in sql?

1003


How to write a left outer join with the where clause in oracle?

1023


What are the uses of Database Trigger ?

1620


Describe the types of sub query?

938


What are the differences between char and nchar in oracle?

1020


How can we force the database to use the user specified rollback segment?

1062


How to assign values to data fields in record variables?

971


How can windows applications connect to oracle servers?

979


How to use existing values in update statements using oracle?

1009