A unique identifier (UID) is an identifier that is guaranteed to be unique among all identifiers used for those objects and for a specific purpose.[1] The concept was formalized early in the development of computer science and information systems. In general, it was associated with an atomic data type.
In relational databases, certain attributes of an entity that serve as unique identifiers are called primary keys.[2] In mathematics, set theory uses the concept of element indices as unique identifiers.