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

Sql technical questions

1253


What does cursor do in sql?

1003


What does the base_object_type column shows in the user.triggers data dictionary view?

1029


Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

990


How to change the order of columns in Oracle SQL Plus ?

1041


What is trigger with example?

1066


what are the properties and different types of sub-queries? : Sql dba

1015


What do you know by pl/sql cursors?

1090


What are the operators in sql?

1002


What are the differences between implicit and explicit cursors?

1049


What is sqlca in powerbuilder?

994


How to move files from one directory to another in pl sql?

1172


Explain sql data types?

1077


What is an index? What are the types of indexes? How many clustered indexes can be created on a table?

1053


What is a sql statement?

939