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...

Difference between primary key and unique key ?

Answer Posted / chintan desai

Primary key don't have any null value, each table have only
one primary key. Not support duplicate value.

Unique key is uniquely identify, more then one unique key
allow in table.

Here the main different is what primary key do not have any
null value where unique key have only one null value.

Ex: here t1 is the name of table which have two field id and
name. here id is identify as a unique key then unique key's
null value look like under bellow:

1 chintan
NULL komal
2 ck
NULL NULL

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens to indexes if you drop a table?

1107


How to generate query output in html format?

1031


various types of hints and their usage

2624


How to connect to the server with user account: sys?

969


How to convert characters to times in oracle?

954


What is Virtual Private Database in Oracle?

1015


How to use attributes of the implicit cursor in oracle?

947


master table and child table performances and comparisons in Oracle ?

2068


What is an oracle database?

989


Explain parameter file in oracle.

970


How to create a table in a specific tablespace?

913


What does sharding mean?

946


What is tns service name?

1071


What is the difference between sharding and partitioning?

928


What is an oracle and why it is used?

1077