The Virtual Database Engine of SQLite
(vdbe.html)
... Now suppose we want to insert a single
record into this table. Like this:
INSERT INTO examp VALUES('Hello, World!',99);
We can see the VDBE program that SQLite uses to implement this
INSERT using the sqlite command-line utility ...
|
Built-in Aggregate Functions
(lang_aggfunc.html)
... CREATE TABLE t1(x REAL);
INSERT INTO t1 VALUES(1.55e+308),(1.23),(3.2e-16),(-1.23),(-1.55e308);
SELECT sum(x), decimal_sum(x) FROM t1;
The large values ±1.55e+308 cancel each other out, but ...
|
Recovering Data From A Corrupt SQLite Database
(recovery.html)
1.1. Limitations
... Normally when SQLite
does a DELETE operation, it does not actually overwrite the old content
but instead remembers that space is available for reuse during the next
INSERT. If such deleted content is still in the file when a recovery ...
|
The Advantages Of Flexible Typing
(flextypegood.html)
1. Introduction
... Some developers are shocked
to discover that it is possible to insert text into a column marked INTEGER.
This article advocates in favor of the flexible type rules
in SQLite.
|
Why Is SQLite Coded In C
(whyc.html)
3. Why Isn't SQLite Coded In A "Safe" Language?
... Safe languages insert additional machine branches to do things like
verify that array accesses are in-bounds. In correct code, those
branches are never taken. That means that the machine code cannot
be 100% branch tested, which is an important ...
|
Transaction
(lang_transaction.html)
... A read transaction is started
by a SELECT statement, and a write transaction is started by
statements like CREATE, DELETE, DROP, INSERT, or UPDATE (collectively
"write statements"). If a write statement occurs while
a read transaction is active, then the ...
|
Window Functions
(windowfunctions.html)
2. Aggregate Window Functions
... CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES (1, 'A', 'one' ),
(2, 'B', 'two' ),
(3, 'C', 'three'),
(4, 'D', 'one' ),
(5, 'E', 'two' ),
(6, 'F', 'three'),
(7, 'G', 'one' );
An aggregate window function is similar ...
|
Measuring and Reducing CPU Usage in SQLite
(cpu.html)
2.1. Compile Options
... For example,
the -DSQLITE_DEBUG option is omitted because that option inserts thousands
of assert() statements in the middle of performance critical sections of the
SQLite library. The -pg option (on GCC) is omitted because it causes the
compiler to emit ...
|
The DBSTAT Virtual Table
(dbstat.html)
4. Example uses of the dbstat virtual table
... CREATE TEMP TABLE s(rowid INTEGER PRIMARY KEY, pageno INT);
INSERT INTO s(pageno) SELECT pageno FROM dbstat ORDER BY path;
SELECT sum(s1.pageno+1==s2.pageno)*1.0/count(*)
FROM s AS s1, s AS s2
WHERE s1 ...
|
How SQLite Is Tested
(testing.html)
8.3. Memsys2
... However, if SQLite is compiled with SQLITE_MEMDEBUG, an alternative
memory allocation wrapper (memsys2)
is inserted that looks for memory allocation
errors at run-time. The memsys2 wrapper checks for memory leaks, of
course, but also looks for buffer overruns, uses ...
|
Page generated by FTS5 in about 162.99 ms.