SQLite VDBE opcode

DropTrigger

Remove the internal (in-memory) data structures that describe the trigger named P4 in database P1.

An example

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

DROP TRIGGER tracks_touch
addropcodep1p2p3p4p5
0Init01400
1Null0100
2OpenWrite01050
3Rewind01100
4Column0120
5Ne3102BINARY-882
6Column0020
7Ne4102BINARY-882
8Rowid0500
9Delete0002
10Next0401
11SetCookie0120
12DropTrigger000tracks_touch0
13Halt0000
14Transaction01101
15String8030tracks_touch0
16String8040trigger0
17Goto0100

Open it in the EXPLAIN visualizer →

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

What the SQLite documentation says

Remove the internal (in-memory) data structures that describe the trigger named P4 in database P1. This is called after a trigger is dropped from disk (using the Destroy opcode) in order to keep the internal representation of the schema consistent with what is on disk.

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.

← DropTable · ElseEq →