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

What are transaction and its controls?

554


How to use distinct and count in sql query? Explain

604


how to show all tables with 'mysql'? : Sql dba

597


can sql servers linked to other servers like oracle? : Sql dba

544


how to load data files into tables with 'mysqlimport'? : Sql dba

512






What is union and union all keyword in sql and what are their differences?

568


What are two statement types in sql?

533


what is a trigger? : Sql dba

568


Is it possible to link two groups inside a cross products after the cross products group has been created?

587


Which command is used to delete a package?

575


Mention what are the benefits of pl/sql packages?

532


How many types of triggers are there in pl sql?

570


What is inner join in sql?

580


Explain cursor types?

572


How do temporal tables work?

514