SQLite PRAGMA

PRAGMA index_list

This pragma returns one row for each index associated with the given table.

PRAGMA schema.index_list(table-name);

On the sample database

What PRAGMA index_list(tracks) returns on the sample database, in SQLite 3.54.1 as built for the browser by sql.js:

seqnameuniqueoriginpartial
0tracks_minutes0c0
1tracks_album0c0

What the SQLite documentation says

This pragma returns one row for each index associated with the given table.

Output columns from the index_list pragma are as follows:

  1. A sequence number assigned to each index for internal tracking purposes.
  2. The name of the index.
  3. "1" if the index is UNIQUE and "0" if not.
  4. "c" if the index was created by a CREATE INDEX statement, "u" if the index was created by a UNIQUE constraint, or "pk" if the index was created by a PRIMARY KEY constraint.
  5. "1" if the index is a partial index and "0" if not.

From sqlite.org's pragma documentation for SQLite 3.54.1, in the public domain.

← index_info · index_xinfo →