Difference between primary key and unique key ?
Answer Posted / tom
There is two difference between them.
1. The not null constraint is by default added to primary
key, it means, primary key attribute cannot accept null
values, whereas, the attribute declared as unique can accept
null values. It is the major difference between the two.
2. Secondly, we can have only one primary key in a relation,
whereas, multiple attributes can be declared unique at the
same time.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the differences between blob and clob in oracle?
HI Friends Myself Manoj,i am from bengaluru.i have 1 yr of exp in PLSQL but not upto the mark..now attending interviews but m not able to clear even 1 round..i have attended 3 interviews till today.purpose of writing this query is,i want to know the intreview topics that interviewer going to ask frequently,mainly SCENARIO based questions.IF anybody have any PLSQL projects please give it to me,it will helps me alot.Thanks for your patience.
Explain the use of grant option in imp command.
How to set a transaction to be read only in oracle?
How to revoke create session privilege from a user in oracle?
How do I start tns listener?
How to see free space of each tablespace?
How to call a stored function in oracle?
What is index-organized table in Oracle?
Explain integrity constraint?
How to delete all rows a table in oracle?
What are nested tables?
What the is the diff between local index and global index. give some example.
How does Oracle guarantee data integrity of data changes?
What types of joins are used in writing subqueries?