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 gpt format?

936


What is cross join sql?

916


what are enums used for in mysql? : Sql dba

1169


What does truncate mean in sql?

1020


What is acid property in a database?

1031


Is left join same as join?

989


How run sql*plus commands that are stored in a local file?

1059


If the application is running very slow? At what points you need to go about the database in order to improve the performance?

996


how can we submit a form without a submit button? : Sql dba

983


What is difference between hql and sql?

1072


Explain isolation levels. : Transact sql

1068


What is identity column in sql server?

1046


What is an example of translating a date into julian format?

1115


What is rownum in sql?

1043


Why is a primary key important?

1036