adspace
What is differance unique key and primary key.
Answer Posted / madhu
unique key:
1.unique key will accept more than one null value.
2.whenever u created a unique key, then internally one non-clustered index will be created(one table can have more than one Non-clustered index).
3.one table can have more than one unique key.
Primary key:
1.One table should have one primary key only.
2.primary key will not accept null values.
3.whenever u created a primary key then internally one clustered index will be created(one table can have only one clustered index).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can delete statement be rollbacked?
what are all the common sql function? : Sql dba
Does group by remove duplicates?
What is the best sql course?
what is sql server agent? : Sql dba
Can we use distinct and group by together?
how many tables will create when we create table, what are they? : Sql dba
what is dbms? : Sql dba
What is the current version of sql?
what is bcp? When does it used? : Sql dba
How do I remove duplicates in two columns?
What is your daily office routine?
what is schema? : Sql dba
Is primary key always clustered index?
what is collation? : Sql dba