IT lexicon › Database › Unique index

Unique index

Database På svenska → Updated: 2026-11-11

An index that forces each indexed value to appear at most once in the table, enforcing a uniqueness constraint.

A unique index guarantees that two rows can never have the same value in the indexed column (or column group). But it's more than just a performance optimization — it's also an integrity constraint that the database engine must enforce during all modifications. Primary keys are typically implemented via unique indexes, as are alternate identifiers like username or email address.

Unique indexes became particularly important when relational databases replaced navigational systems, because they formalized which attributes could identify rows uniquely without relying on explicit pointers.

← Back to the lexicon