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 / suresh babu

Primary key and foreign key both are constraints.

Primary key:We can create only one primary key for a
table,which never allows the repeated or duplicate values
and null values.The index will be created when defining a
primary key.And primary key is used to make a relation
between more than one tables.

Foreign key:It allows the duplicate and null values.if we
want to make a relation between two tables,the parent table
column must have primary column and child table column
called foreign key.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are properties of a transaction? : Sql dba

1139


How do I find duplicates in sql?

982


What is data profiling in sql?

1139


What is the advantage of index in sql?

1020


Can we use threading in pl/sql?

1099


What is the purpose of design view?

1078


What type of database is cloud sql?

1160


What is rtm in testing?

1175


Can we use the cursor's to create the collection in PL/SQL?

1096


What is record type in pl sql?

1036


What is the purpose of the primary key?

1117


What is difference between stored function and application function?

1290


What sql database should I use?

1201


How do you sort in sql?

1071


What are the query optimization techniques?

1000