Difference between primary key and unique key ?
Answer Posted / rinu
1)unique key can be null but primariy key cant be null.
2)primariy key can be refrenced to other table as FK.
3)we can have multiple unique key in a table but PK is one
and only one.
4)PK in itself is unique key.
5)a table can have more then one unique key column but a
table can have only one primary key column.
6)primary key creates clustered index but unique key
creates non clustered index.
| Is This Answer Correct ? | 12 Yes | 7 No |
Post New Answer View All Answers
Explain the use of grant option in exp command.
How to update values in a table in oracle?
How to use subqueries in the from clause in oracle?
How can we delete duplicate rows in a table?
How to start an oracle instance?
Can sub procedure/function be called recursively?
i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)
What is meant by joins?
How do I find the database name in oracle?
i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?
How to add a new column to an existing table in oracle?
How to set a transaction to be read only in oracle?
What is pragma autonomous transaction in oracle?
What is a procedure in oracle?
What is a trigger oracle?