SQLite VDBE opcode

Close

Close a cursor previously opened as P1.

An example

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

SELECT count(*) FROM tracks
addropcodep1p2p3p4p5
0Init0700
1OpenRead1190k(2,,)0
2Count1100
3Close1000
4Copy1200
5ResultRow2100
6Halt0000
7Transaction00101
8Goto0100

Open it in the EXPLAIN visualizer →

Also in this program: Copy, Count, Goto, Halt, Init, OpenRead, ResultRow, Transaction.

What the SQLite documentation says

Close a cursor previously opened as P1. If P1 is not currently open, this instruction is a no-op.

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.

← Clear · ClrSubtype →