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 difference between "Primary key" and "Unique key"?

Answer Posted / swapna

1)unique key can be null but primariy key cant be null.
2)primariy key can be refrenced to other table as FK.
Primary key and unique are Entity integrity constraints
Primary key allows each row in a table to be uniquely
identified and ensures that no duplicate rows
exist and no null values are entered.
Unique key constraint is used to prevent the duplication of
key values within the rows of a table and allow null
values. (In oracle, one null is not equal to another null).

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the usages of sql?

1011


What does a pl/sql package consist of?

929


What action do you have to perform before retrieving data from the next result set of a stored procedure ?

2527


Why is partition used in sql?

1050


How to write pl sql program in mysql command prompt?

1007


Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?

1176


What is sorting in sql?

893


What are the advantages of pl sql over sql?

962


What is trigger in sql? Explain

941


Explain the uses of a database trigger?

982


How do you pronounce sql?

955


How do you use a while loop in pl sql?

940


What is dynamic query?

913


Why do we use partitions in sql?

976


how can we destroy the session, how can we unset the variable of a session? : Sql dba

933