SQLite VDBE opcode

ColumnsUsed

This opcode (which only exists if SQLite was compiled with SQLITE_ENABLE_COLUMN_USED_MASK) identifies which columns of the table or index for cursor P1 are used.

An example

None of the 178 statements we compiled against the sample database with SQLite 3.54.1 uses ColumnsUsed. Some opcodes appear only in debugging builds or with particular compile-time options, and some only in rare query plans.

What the SQLite documentation says

This opcode (which only exists if SQLite was compiled with SQLITE_ENABLE_COLUMN_USED_MASK) identifies which columns of the table or index for cursor P1 are used. P2 and P3 combine to give a 64-bit unsigned integer mask. P2 stores the lower 32 bits and P3 stores the upper 32 bits. If the high-order bit of P3 is set that means that and 64-th or some later column is used.

From sqlite.org's list of opcodes for SQLite 3.54.1, in the public domain. Opcodes are not a stable interface and change between releases.

← Column · Compare →