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

Why select is used in sql?

520


What are properties of the transaction?

560


how to write date and time literals? : Sql dba

533


What are all the common sql functions?

567


What is the difference between left outer join and left join?

517






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

527


Is crud a cuss word?

548


What are all different types of collation sensitivity?

528


Is it possible to create the following trigger: before or after update trigger for each row?

722


Is primary key clustered or nonclustered?

568


How to fix oracle error ora-00942: table or view does not exist

570


Does a primary key have to be a number?

522


What are the 3 types of behavioral triggers?

666


What is a database trigger?

612


Why do you partition data?

536