adspace
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 dbms? : Sql dba
what is schema? : Sql dba
what are aggregate and scalar functions? : Sql dba
Is primary key clustered index?
Can we rollback truncate?
Can we use distinct and group by together?
how to start mysql server? : Sql dba
What is the best sql course?
Can delete statement be rollbacked?
What is the current version of postgresql?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
If a cursor is open, how can we find in a pl/sql block?
define sql insert statement ? : Sql dba
how to use regular expression in pattern match conditions? : Sql dba
Is primary key always clustered index?