SQLite VDBE opcode

VDestroy

P4 is the name of a virtual table in database P1.

An example

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

DROP TABLE lyrics
addropcodep1p2p3p4p5
0Init01600
1VBegin0000
2Null0100
3OpenWrite01050
4Rewind01200
5Column0220
6Ne3112BINARY-882
7Column0020
8Eq4112BINARY-882
9Rowid0500
10Delete0002
11Next0501
12VDestroy000lyrics0
13DropTable000lyrics0
14SetCookie0120
15Halt0000
16Transaction01101
17String8030lyrics0
18String8040trigger0
19Goto0100

Open it in the EXPLAIN visualizer →

Also in this program: Column, Delete, DropTable, Eq, Goto, Halt, Init, Ne, Next, Null, OpenWrite, Rewind, Rowid, SetCookie, String8, Transaction, VBegin.

What the SQLite documentation says

P4 is the name of a virtual table in database P1. Call the xDestroy method of that table.

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.

← VCreate · VFilter →