SQLite VDBE opcode

IfEmpty

Check to see if the b-tree table that cursor P1 references is empty and jump to P2 if it is.

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

None of the 178 statements we compiled against the sample database with SQLite 3.54.1 uses IfEmpty. 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

Check to see if the b-tree table that cursor P1 references is empty and jump to P2 if it is.

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.

← If · IFindKey →