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


Please Help Members By Posting Answers For Below Questions

Is pl sql different from sql?

717


Explain what is a view?

797


Which operator is used in query for pattern matching?

837


- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1581


Explain commit, rollback and savepoint.

766






What is rename in sql?

728


Can we debug stored procedure?

721


how to increment dates by 1 in mysql? : Sql dba

727


what are sequences

1316


Does group by remove duplicates?

754


what is sql in mysql? : Sql dba

820


Can we insert in sql function?

774


What operators deal with null?

813


what are myisam tables? : Sql dba

722


How many parts of a pl sql block are optional?

713