Imposter Tables
(imposter.html)
2.1. Manually Created Imposter Tables
One way to create an imposter table is to directly edit the sqlite_schema
table to insert a new row that describes the table.
For example, suppose the schema is like this:
CREATE TABLE t1(a INTEGER PRIMARY KEY,b TEXT ...
|
C API: Pseudo-Random Number Generator
(c3ref/randomness.html)
sqlite3_randomness()
SQLite contains a high-quality pseudo-random number generator (PRNG) used to
select random ROWIDs when inserting new records into a table that
already uses the largest possible ROWID. The PRNG is also used for
the built-in random() and ...
|
List of SQLite Syntax Diagrams
(syntax.html)
... stmt
drop-view-stmt
expr
factored-select-stmt
filter-clause
foreign-key-clause
frame-spec
function-arguments
indexed-column
insert-stmt
join-clause
join-constraint
join-operator
literal-value
numeric-literal
ordering-term
over-clause
pragma-stmt
pragma-value
qualified ...
|
SQLite Archive Files
(sqlar.html)
5. Managing SQLite Archives From Application Code
... Using the two routines above, it is simple for applications to insert
new records into or extract existing records from an SQLite Archive.
Insert a new into an SQLite Archive using code like this:
INSERT INTO sqlar(name,mode,mtime ...
|
The WITH Clause
(lang_with.html)
... CREATE TABLE org(
name TEXT PRIMARY KEY,
boss TEXT REFERENCES org
) WITHOUT ROWID;
INSERT INTO org VALUES('Alice',NULL);
INSERT INTO org VALUES('Bob','Alice');
INSERT INTO org VALUES('Cindy','Alice');
INSERT INTO org VALUES('Dave','Bob');
INSERT INTO org ...
|
Query Language Understood by SQLite
(lang.html)
... time functions
DELETE
DETACH DATABASE
DROP INDEX
DROP TABLE
DROP TRIGGER
DROP VIEW
END TRANSACTION
EXPLAIN
expression
INDEXED BY
INSERT
JSON functions
keywords
math functions
ON CONFLICT clause
PRAGMA
REINDEX
RELEASE SAVEPOINT
REPLACE
RETURNING clause
ROLLBACK TRANSACTION
SAVEPOINT
SELECT
UPDATE ...
|
Full-Featured SQL
(fullsql.html)
... and EXCEPT
A rich library of standard SQL functions
Aggregate functions including DISTINCT aggregates
Window functions
UPDATE, DELETE, and INSERT (of course)
Common table expressions including
recursive common table expressions
Row values
UPSERT
An advanced query planner
Full-text search ...
|
Implementation Limits For SQLite
(limits.html)
... If an SQL statement is limited to be a million bytes in length, then
obviously you will not be able to insert multi-million byte strings
by embedding them as literals inside of INSERT statements. But
you should not do ...
|
C API: Reset A Prepared Statement Object
(c3ref/reset.html)
sqlite3_reset()
... For example, if an
INSERT statement with a RETURNING clause is only stepped one time,
that one call to sqlite3_step(S) might return SQLITE_ROW but
the overall statement might still fail and the sqlite3_reset(S) call
might return SQLITE_BUSY if ...
|
Syntax Diagrams For SQLite
(syntaxdiagrams.html)
... Used by: compound-select-stmt delete-stmt delete-stmt-limited factored-select-stmt insert-stmt select-stmt simple-select-stmt update-stmt   ...
|
Page generated by FTS5 in about 152.61 ms.