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

Primary Key: This is a constraint which is always unique &
not null.

Foreign Key: This is a constraint which is just opposite to
Primary key. It can be not Null & can accept duplicate value
as well. Foreign key points to same table's primary key or
another table's primary key to make a relationship.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different ddl commands in sql?

1172


Could you please provide oca (oracle 10g) dumps for my certification ?

5170


How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

1136


Can %notfound return null after a fetch?

1062


How can a function retun more than one value in oracle with proper example?

1075


what are string data types? : Sql dba

1047


What types of commands can be executed in sql*plus?

1109


How are sql commands classified?

1092


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

1160


what is the syntax for using sql_variant_property? : Transact sql

1049


What is sqlcommand?

1032


what is the difference between truncate and delete statement? : Transact sql

1067


What is implicit cursor in pl sql?

1097


What are all the common sql functions?

1035


Explain the difference between drop and truncate commands in sql?

1056