SQLite VDBE opcode

Pagecount

Write the current number of pages in database P1 to memory cell P2.

An example

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

PRAGMA page_count
addropcodep1p2p3p4p5
0Init0500
1Expire1100
2Pagecount0300
3ResultRow3100
4Halt0000
5Transaction00101
6Goto0100

Open it in the EXPLAIN visualizer →

Also in this program: Expire, Goto, Halt, Init, ResultRow, Transaction.

What the SQLite documentation says

Write the current number of pages in database P1 to memory cell P2.

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.

← Or · Param →