SQLite VDBE opcode

Blob

P4 points to a blob of data P1 bytes long.

An example

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

SELECT x'cafe'
addropcodep1p2p3p4p5
0Init0400
1Blob210��0
2ResultRow1100
3Halt0000
4Goto0100

Open it in the EXPLAIN visualizer →

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

What the SQLite documentation says

P4 points to a blob of data P1 bytes long. Store this blob in register P2. If P4 is a NULL pointer, then construct a zero-filled blob that is P1 bytes long in 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.

← BitOr · Cast →