If we declare constraints Unique and Not null on a single
column then it will act as a Primary key, so what is the use
of primary key??
Answer Posted / neha sinha
1) Primary key creates clustered index and unique key
creates non-clustered index. Performance wise clustered
index is fast so we need Primary key.
2)if we need more then one primary key in table than we can
use unique key+NOT NULL becous it behave as Primary key but
we cant define more than one column as primary key. :)
| Is This Answer Correct ? | 23 Yes | 1 No |
Post New Answer View All Answers
What is the requirement of self-join?
Explain the uses of a database trigger?
What is synonyms?
What is a file delimiter?
What is sqlerrd?
Show the cursor attributes of pl/sql.
Why function is used in sql?
Why coalesce is used in sql?
What is a pragma statement?
Is sql a programming?
Explain the uses of database trigger.
What is nosql example?
How many tables can you join in sql?
Is nosql faster than sql?
Explain the insert into statements in sql?