SQLite VDBE opcode

ResultRow

The registers P1 through P1+P2-1 contain a single row of results.

An example

125 of the 178 statements we compiled against the sample database use ResultRow. This is the one with the shortest program; the rows that use ResultRow are highlighted.

SELECT 1
addropcodep1p2p3p4p5
0Init0400
1Integer1100
2ResultRow1100
3Halt0000
4Goto0100

Open it in the EXPLAIN visualizer →

Also in this program: Goto, Halt, Init, Integer.

What the SQLite documentation says

The registers P1 through P1+P2-1 contain a single row of results. This opcode causes the sqlite3_step() call to terminate with an SQLITE_ROW return code and it sets up the sqlite3_stmt structure to provide access to the r(P1)..r(P1+P2-1) values as the result row.

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.

← ResetSorter · Return →