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 is an invalid partition table?

1025


What are the advantages of normalization?

1078


How to use boolean type in select statement?

1077


What is dynamic query?

977


What is a string data type in sql?

1045


What is an inner join sql?

1029


Does sql*plus have a pl/sql engine?

1075


What is the purpose of cursors in pl/sql?

1137


what are the different tables present in mysql? : Sql dba

984


What are the two virtual tables available at the time of database trigger execution?

1222


What is a natural join?

1074


what are the performance and scalability characteristics of mysql? : Sql dba

997


what are the authentication modes in sql server? How can it be changed? : Sql dba

1433


What is lookup table in sql?

1049


what is the syntax used for partition in tsql? : Transact sql

1014