An index is a type of object stored within a database. Working much like an alphabetical index found at the end of a book, database indices are used to order the appearance of rows within a table according to some set of rules. Typically, these rules use the values stored in one or more columns to form what are called key values. A primary rule of relational databases is that key values must be unique.