What is the difference between UNIQUE KEY and UNIQUE INDEX?
Answer Posted / 1
There is a clear difference between the 2. A unique
constraint defines what combination of columns has to be
unique. A unique index is just a way of making sure the
above is always valid. But it's possible to have a non-
unique index supporting a unique constraint. (if the
constraint is deferable = Only has to be valid at commit
time but is allowed to be broken in the middle of a
transaction)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to avoid using cursors? What to use instead of cursor and in what cases to do so?
What is row_number () in sql?
Does sql view stored data?
Is a foreign key always unique?
Which is better join or inner query?
what is the stuff function and how does it differ from the replace function? : Sql dba
What is the starting oracle error number? What is meant by forward declaration in functions?
What makes a good primary key?
What is where clause in sql?
Can we use insert statement in function?
how can we take a backup of a mysql table and how can we restore it. ? : Sql dba
Why truncate is faster than delete?
What can I use instead of union in sql?
What is join view in sql?
what is collation? : Sql dba