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
How many types of tables are there?
Is sql a oracle?
What is on delete restrict?
Can you skip header records while loading? : aql loader
what is the difference difference between procedure and packages
How do you declare a constant?
How does a self join work?
what is denormalization. : Sql dba
What is a design view?
What is a composite primary key?
Explain raise_application_error.
what is the difference between char_length and length? : Sql dba
What is a .db file?
Does pl/sql support create command?
What does subquery mean in sql?