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
| addr | opcode | p1 | p2 | p3 | p4 | p5 |
|---|---|---|---|---|---|---|
| 0 | Init | 0 | 16 | 0 | 0 | |
| 1 | VBegin | 0 | 0 | 0 | 0 | |
| 2 | Null | 0 | 1 | 0 | 0 | |
| 3 | OpenWrite | 0 | 1 | 0 | 5 | 0 |
| 4 | Rewind | 0 | 12 | 0 | 0 | |
| 5 | Column | 0 | 2 | 2 | 0 | |
| 6 | Ne | 3 | 11 | 2 | BINARY-8 | 82 |
| 7 | Column | 0 | 0 | 2 | 0 | |
| 8 | Eq | 4 | 11 | 2 | BINARY-8 | 82 |
| 9 | Rowid | 0 | 5 | 0 | 0 | |
| 10 | Delete | 0 | 0 | 0 | 2 | |
| 11 | Next | 0 | 5 | 0 | 1 | |
| 12 | VDestroy | 0 | 0 | 0 | lyrics | 0 |
| 13 | DropTable | 0 | 0 | 0 | lyrics | 0 |
| 14 | SetCookie | 0 | 1 | 2 | 0 | |
| 15 | Halt | 0 | 0 | 0 | 0 | |
| 16 | Transaction | 0 | 1 | 1 | 0 | 1 |
| 17 | String8 | 0 | 3 | 0 | lyrics | 0 |
| 18 | String8 | 0 | 4 | 0 | trigger | 0 |
| 19 | Goto | 0 | 1 | 0 | 0 |
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.