SQLite VDBE opcode

Le

This works just like the Lt opcode except that the jump is taken if the content of register P3 is less than or equal to the content of register P1.

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

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

SELECT CASE WHEN ms > 300000 THEN 'long' ELSE 'short' END FROM tracks
addropcodep1p2p3p4p5
0Init01100
1OpenRead04040
2Rewind01000
3Column0320
4Le372BINARY-884
5String8010long0
6Goto0800
7String8010short0
8ResultRow1100
9Next0301
10Halt0000
11Transaction00101
12Integer300000300
13Goto0100

Open it in the EXPLAIN visualizer →

Also in this program: Column, Goto, Halt, Init, Integer, Next, OpenRead, ResultRow, Rewind, String8, Transaction.

What the SQLite documentation says

This works just like the Lt opcode except that the jump is taken if the content of register P3 is less than or equal to the content of register P1. See the Lt opcode for additional information.

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.

← Last · LoadAnalysis →