SQLite VDBE opcode

RowSetRead

Extract the smallest value from the RowSet object in P1 and put that value into register P3.

Jumps: P2 is an instruction address. In the listings here, a jump is drawn as an arc and the address is a link.

An example

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

DELETE FROM lyrics WHERE track_id = 1
addropcodep1p2p3p4p5
0Init01500
1Null0100
2VOpen000vtab:52B1500
3Integer0200
4Integer0300
5VFilter01120
6VColumn0040
7Ne5104BINARY-881
8Rowid0600
9RowSetAdd1600
10VNext0600
11RowSetRead11460
12VUpdate016vtab:52B1502
13Goto01100
14Halt0000
15Transaction01101
16VBegin000vtab:52B1500
17Integer1500
18Goto0100

Open it in the EXPLAIN visualizer →

Also in this program: Goto, Halt, Init, Integer, Ne, Null, RowSetAdd, Rowid, Transaction, VBegin, VColumn, VFilter, VNext, VOpen, VUpdate.

What the SQLite documentation says

Extract the smallest value from the RowSet object in P1 and put that value into register P3. Or, if RowSet object P1 is initially empty, leave P3 unchanged and jump to instruction P2.

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.

← RowSetAdd · RowSetTest →