SQLite VDBE opcode

RowSetAdd

Insert the integer value held by register P2 into a RowSet object held in register P1.

An example

2 of the 178 statements we compiled against the sample database use RowSetAdd. This is the one with the shortest program; the rows that use RowSetAdd 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, RowSetRead, Rowid, Transaction, VBegin, VColumn, VFilter, VNext, VOpen, VUpdate.

What the SQLite documentation says

Insert the integer value held by register P2 into a RowSet object held in register P1.

An assertion fails if P2 is not an integer.

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.

← Rowid · RowSetRead →