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 is scalar data type in pl sql?

1074


What is sql injection owasp?

1069


Explain exception handling in pl/sql?

1039


What is dense_rank in sql?

989


What is difference between table and view?

1063


Can %notfound return null after a fetch?

1062


How do you remove duplicates without using distinct in sql?

982


Can we alter stored procedure?

991


What is serial sql?

979


how to do backup entire database? : Transact sql

1148


What are sql*plus environment variables?

1098


Why use triggers in sql?

961


What is composite primary key in sql?

999


What are string functions in sql?

1249


How do I edit a trigger in sql developer?

1000