|
Requirements consist of excerpts from the documentation. A requirement is usually a one-sentence excerpt but might be a sentence fragment, multiple sentences, a table, or a GIF image of a bubble syntax diagram.
Requirements are written in conversational English and without the modal auxiliary verb "shall". This grows out of the fact that requirements are taken from the documentation. The intended audience for the documentation is application programmers. "Shall" language is appropriate when the audience consist of contract specialists, QA auditors, and lawyers, but it interferes with comprehension when the audience is application programmers. Hence, in order to best serve the intended audience, the "shall" language is omitted.
Requirements are sufficiently detailed and precise to permit a 100% compatible clean-room reimplementation of SQLite.
The word "requirement" in common English usage implies an ordering: that the requirement comes before the implementation. But there is no such ordering with SQLite requirements. What are called "requirements" in SQLite are better described as "testable statements of truth about the behavior of the system".
Every testable statement of truth about SQLite in the documentation becomes a requirement.
Requirement numbers are the MD5 hash of the requirement itself.
Requirements are inheriently immutable, since any change to the requirement results in a completely different requirement number.
For text requirements, the text is normalized prior to computing the MD5 hash:
For GIF syntax diagram requirements, the MD5 hash is computed over the entire content of the GIF image file.
The MD5 hash is expressed in human-readable form as follows:
R-N-N-N-N-N-N-N-NWhere each N is a 5-digit number between 00000 and 65536 that represents 16 bits of the 128-bit MD5 hash.
Requirements may be referenced by any unique prefix of their complete requirement number.
Text requirements are automatically extracted from the documentation by scripts that run as part of the documentation build process.
After requirements have been extracted from the documentation, the requirement markers "^", "^(", and ")^" are removed from the documentation text. This is done automatically by the documentation build scripts.
To avoid collisions with these requirements delimiters, "^" characters that are part of the text of a requirement or that are otherwise found in the documentation, should be coded as "^".
<img alt="syntax diagram NAME" src="FILE">Where NAME is the name of the syntax diagram and FILE is the name of the GIF file containing the syntax diagram.
Syntax diagram requirements are automatically extracted from the documentation by scripts that run as part of the documentation build process.
The GIF file is the requirement, not the HTML markup that references the GIF file nor the diagram name.
The documentation that contains the requirement text is generated by scripts that use as input files from both files in the documentation fossil repository and comments in the source code.
The key comes first and is separated from the value by a single "=" character. (source uri.html)
A virtual table module is created by filling in a persistent instance of this structure and passing a pointer to that instance to sqlite3_create_module() or sqlite3_create_module_v2(). (source c3ref/module.html)
SQLite automatically serializes calls to the xInit method, so the xInit method need not be threadsafe. (source c3ref/pcache_methods2.html, checked-by: src/main.c)
In such cases, duplicate elements are filtered before being passed into the aggregate function. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
SQLite keeps track of the largest ROWID that a table has ever held using the special SQLITE_SEQUENCE table. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
The outer query is not an aggregate or the subquery does not contain ORDER BY. (source optoverview.html)
Contrary to the intuition of many, sqlite3_reset() does not reset the bindings on a prepared statement. (source c3ref/clear_bindings.html, checked-by: th3/req1/clearbind01.test)
Assuming there are no other indices, the query above would result in a full table scan. (source optoverview.html)
The analysis of a term might cause new "virtual" terms to be added to the WHERE clause. (source optoverview.html, checked-by: src/where.c)
A UNIQUE constraint is similar to a PRIMARY KEY constraint, except that a single table may have any number of UNIQUE constraints. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
If the declared type of the column contains any of the strings "CHAR", "CLOB", or "TEXT" then that column has TEXT affinity. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
Returning to the example in section 1, each time an application deletes a row from the artist table (the parent table), it performs the equivalent of the following SELECT statement to search for referencing rows in the track table (the child table). SELECT rowid FROM track WHERE trackartist = ? where ? in the above is replaced with the value of the artistid column of the record being deleted from the artist table (recall that the trackartist column is the child key and the artistid column is the parent key). (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys10.test)
This SQL function is implemented using the sqlite3_result_zeroblob() routine from the C/C++ interface. (source lang_corefunc.html, checked-by: src/func.c)
aConstraint[].usable is TRUE if the expr on the right-hand side can be evaluated (and thus the constraint is usable) and false if it cannot. (source c3ref/index_info.html)
PRAGMA temp_store; PRAGMA temp_store = 0 | DEFAULT | 1 | FILE | 2 | MEMORY; Query or change the setting of the "temp_store" parameter. (source pragma.html)
The subquery and outer query do not both use LIMIT. (source optoverview.html)
The view definition is removed from the database schema, but no actual data in the underlying base tables is modified. (source lang_dropview.html, checked-by: slt/slt_lang_dropview.test, tcl/e_dropview.test)
If the parent key columns have a UNIQUE index, then that index must use the collation sequences that are specified in the CREATE TABLE statement for the parent table. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys07.test)
The filename argument can be a URI filename if URI filename processing is enable on the database connection. (source lang_attach.html)
When the right operand of an IN or NOT IN operator is a subquery, the subquery must have a single result column. (source lang_expr.html, checked-by: slt/in2.test)
The sqlite3_get_table() function evaluates one or more semicolon-separated SQL statements in the zero-terminated UTF-8 string of its 2nd parameter and returns a result table to the pointer given in its 3rd parameter. (source c3ref/free_table.html, checked-by: th3/req1/gettable01.test)
A frame is considered valid if and only if the following conditions are true: The salt-1 and salt-2 values in the frame-header match salt values in the wal-header The checksum values in the final 8 bytes of the frame-header exactly match the checksum computed consecutively on the WAL header and the first 8 bytes and the content of all frames up to and including the current frame. (source fileformat2.html)
This feature allows WAL databases to be created, read, and written by legacy VFSes that lack the "version 2" shared-memory methods xShmMap, xShmLock, xShmBarrier, and xShmUnmap on the sqlite3_io_methods object. (source wal.html, checked-by: th3/req1/pragma05.test)
In any aggregate function that takes a single argument, that argument can be preceded by the keyword DISTINCT. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
Unless the flattening optimization is applied, if a subquery appears in the FROM clause of a SELECT statement, SQLite executes the subquery and stores the results in a temporary table. It then uses the contents of the temporary table in place of the subquery to execute the parent query. (source eqp.html, checked-by: th3/req1/eqp01.test)
Statistics gathered by ANALYZE are not automatically updated as the content of the database changes. (source lang_analyze.html, checked-by: th3/req1/analyze01.test)
A negative LIMIT value is interpreted as "no limit". (source lang_delete.html, checked-by: tcl/e_delete.test)
Note that column must be the same column in every OR-connected subterm, although the column can occur on either the left or the right side of the = operator. (source optoverview.html)
The expression "x BETWEEN y and z" is logically equivalent to two comparisons "x >= y AND x <= z" and works with respect to collating functions as if it were two separate comparisons. (source datatype3.html, checked-by: th3/req1/datatype3_10.test)
If additional page cache memory is needed beyond what is provided by this option, then SQLite goes to sqlite3_malloc() for the additional storage space. (source c3ref/c_config_getmalloc.html)
The COMMIT command may be used to release all savepoints and commit the transaction even if the transaction was originally started by a SAVEPOINT command instead of a BEGIN command. (source lang_savepoint.html)
Ptrmap pages must exist in any database file which has a non-zero largest root b-tree page value at offset 52 in the database header. (source fileformat2.html)
A cast of a REAL value into an INTEGER will truncate the fractional part of the REAL. (source lang_expr.html, checked-by: tcl/e_expr.test)
Compute the number of days since the signing of the US Declaration of Independence. SELECT julianday('now') - julianday('1776-07-04'); (source lang_datefunc.html, checked-by: th3/req1/date01.test)
The cache sharing mode set by this interface effects all subsequent calls to sqlite3_open(), sqlite3_open_v2(), and sqlite3_open16(). Existing database connections continue use the sharing mode that was in effect at the time they were opened. (source c3ref/enable_shared_cache.html)
If neither argument to nullif() defines a collating function then the BINARY is used. (source lang_corefunc.html, checked-by: th3/req1/func03.test)
The prefix option must be set to a comma separated list of positive non-zero integers. (source fts3.html)
If no database name is specified and the TEMP keyword is not present then the table is created in the main database. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
For each value N in the list, prefixes of length N bytes (when encoded using UTF-8) are indexed. (source fts3.html)
These routines return 1 if the input string appears to be a complete SQL statement. (source c3ref/complete.html, checked-by: th3/cov1/complete01.test)
A SELECT statement enclosed in parentheses may appear as a scalar quantity. (source lang_expr.html, checked-by: tcl/e_expr.test)
The column in the MIN or MAX function must be an indexed column. (source optoverview.html)
The foreign key for table child5 is an error because even though the parent key column has a unique index, the index uses a different collating sequence. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys07.test)
With the legacy interface, a more specific error code (for example, SQLITE_INTERRUPT, SQLITE_SCHEMA, SQLITE_CORRUPT, and so forth) can be obtained by calling sqlite3_reset() on the prepared statement. (source c3ref/step.html)
The values returned by sqlite3_memory_used() and sqlite3_memory_highwater() include any overhead added by SQLite in its implementation of sqlite3_malloc(), but not overhead added by the any underlying system library routines that sqlite3_malloc() may call. (source c3ref/memory_highwater.html)
It is usually an error to attempt to create a new table in a database that already contains a table, index or view of the same name. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The result of load_extension() is always a NULL. (source lang_corefunc.html, checked-by: th3/cov1/func03.test)
This function sets the database handle error code and message. (source c3ref/blob_reopen.html, checked-by: th3/req1/blob01.test)
The sqlite_source_id() function returns a string that identifies the specific version of the source code that was used to build the SQLite library. (source lang_corefunc.html, checked-by: th3/req1/func04.test)
Hence, the histogram data which is collected no left-most column of indices is useless in helping to choose between the range constraints on columns x and y. (source optoverview.html)
Before any information-bearing page of the database is modified, the original unmodified content of that page is written into the rollback journal. (source fileformat2.html)
If the statement that caused the trigger program to execute is itself part of a trigger program, then that trigger program resumes execution at the beginning of the next step. (source lang_createtrigger.html)
When xSavepoint(X,N) is invoked, that is a signal to the virtual table X that it should save its current state as savepoint N. (source vtab.html)
As the components of a compound SELECT must be simple SELECT statements, they may not contain ORDER BY or LIMIT clauses. (source lang_select.html, checked-by: tcl/e_select.test)
The DROP TABLE statement removes a table added with the CREATE TABLE statement. (source lang_droptable.html, checked-by: slt/slt_lang_droptable.test)
The ALTER TABLE command does not work on the sqlite_stat1 or sqlite_stat3 tables, but all the content of those tables can be queried using SELECT and can be deleted, augmented, or modified using the DELETE, INSERT, and UPDATE commands. (source lang_analyze.html, checked-by: th3/req1/analyze01.test)
xUnpin() is called by SQLite with a pointer to a currently pinned page as its second argument. (source c3ref/pcache_methods2.html)
When the EXPLAIN QUERY PLAN phrase appears, the statement returns high-level information regarding the query plan that would have been used. (source lang_explain.html)
If the implicit DELETE FROM
The "vfs" parameter may be used to specify the name of a VFS object that provides the operating system interface that should be used to access the database file on disk. (source c3ref/open.html, checked-by: tcl/e_uri.test)
It is safe to call this routine from a thread different from the thread that is currently running the database operation. (source c3ref/interrupt.html)
If the sub-query is a compound select, then it must not use an ORDER BY clause. (source optoverview.html)
The third argument is the value to bind to the parameter. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
These functions return information about the Nth result column returned by the statement, where N is the second function argument. (source c3ref/column_database_name.html)
If the NATURAL keyword is added to any of the join-ops, then an implicit USING clause is added to the join-constraints. The implicit USING clause contains each of the column names that appear in both the left and right-hand input datasets. (source lang_select.html, checked-by: tcl/e_select.test)
SQLite automatically frees the memory allocated by sqlite3_aggregate_context() when the aggregate query concludes. (source c3ref/aggregate_context.html, checked-by: th3/req1/aggcntx01.test)
The sqlite3_bind_zeroblob() and sqlite3_result_zeroblob() interfaces and the built-in zeroblob SQL function can be used, if desired, to create an empty, zero-filled blob in which to read or write using this interface. (source c3ref/blob_open.html)
Any triggers attached to the table are dropped from the database schema before the implicit DELETE FROM
This option is used to enable or disable triggers. (source c3ref/c_dbconfig_enable_fkey.html)
This character may be used in the LIKE pattern to include literal percent or underscore characters. (source lang_expr.html, checked-by: tcl/e_expr.test)
For the purposes of detecting duplicate rows, two NULL values are considered to be equal. (source lang_select.html, checked-by: tcl/e_select.test)
A NOT NULL constraint may only be attached to a column definition, not specified as a table constraint. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The 2nd argument to the sqlite3_exec() callback function is the number of columns in the result. (source c3ref/exec.html, checked-by: th3/req1/exec01.test)
The left-hand side of the LIKE or GLOB operator must be the name of an indexed column with TEXT affinity. (source optoverview.html, checked-by: src/where.c, th3/req1/like01.test)
The net effect is that putting the ON or USING clause expressions for a LEFT JOIN in the WHERE clause effectively converts the query to an ordinary INNER JOIN - albeit an inner join that runs more slowly. (source optoverview.html)
Subject to filtering associated with the DISTINCT keyword, the number of rows returned by an aggregate query with a GROUP BY clause is the same as the number of groups of rows produced by applying the GROUP BY and HAVING clauses to the filtered input dataset. (source lang_select.html, checked-by: tcl/e_select.test)
Such an index is used like any other index in the database to optimize queries. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The shadow tables are ordinary SQLite data tables. (source rtree.html)
The subquery is not the right operand of a left outer join. (source optoverview.html)
The value returned is one of SQLITE_ROLLBACK, SQLITE_IGNORE, SQLITE_FAIL, SQLITE_ABORT, or SQLITE_REPLACE, according to the ON CONFLICT mode of the SQL statement that triggered the call to the xUpdate method of the virtual table. (source c3ref/vtab_on_conflict.html)
Columns of the result set include the index name and a flag to indicate whether or not the index is UNIQUE. (source pragma.html, checked-by: th3/req1/pragma15.test)
The sqlite3_initialize() routine initializes the SQLite library. (source c3ref/initialize.html)
SQLite has three built-in collating functions: BINARY, NOCASE, and RTRIM. (source datatype3.html, checked-by: th3/req1/datatype3_09.test)
The first two constants (SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE) cause sqlite3_mutex_alloc() to create a new mutex. (source c3ref/mutex_alloc.html)
This in-memory database will vanish when the database connection is closed. (source c3ref/open.html)
Formats 8 through 10 that specify only a time assume a date of 2000-01-01. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
If the filename is an empty string, then a private, temporary on-disk database will be created. (source c3ref/open.html)
The cast is carried through even if it is lossy and irreversible. (source datatype3.html, checked-by: th3/req1/datatype3_06.test)
The wal_checkpoint pragma can be used to invoke this interface from SQL. (source c3ref/wal_checkpoint.html)
The filename for the database to be attached is the value of the expression that occurs before the AS keyword. (source lang_attach.html, checked-by: th3/req1/attach01.test)
PRAGMA cache_size; PRAGMA cache_size = pages; PRAGMA cache_size = -kibibytes; Query or change the suggested maximum number of database disk pages that SQLite will hold in memory at once per open database file. (source pragma.html, checked-by: th3/req1/pragma09.test)
If the result of the evaluating the LIMIT clause cannot be losslessly converted to an integer value, it is an error. (source lang_delete.html, checked-by: tcl/e_delete.test)
This function may load one or more schemas from database files. If an error occurs during this process, or if the requested table or column cannot be found, an error code is returned and an error message left in the database connection (to be retrieved using sqlite3_errmsg()). (source c3ref/table_column_metadata.html)
This option sets the threading mode to Single-thread. (source c3ref/c_config_getmalloc.html)
If one operand has TEXT affinity and the other has NONE affinity, then TEXT affinity is applied to the other operand. (source datatype3.html, checked-by: th3/req1/datatype3_05.test)
The cell pointer array consists of K 2-byte integer offsets to the cell contents. (source fileformat2.html)
The name of the database or table or column can be returned as either a UTF-8 or UTF-16 string. (source c3ref/column_database_name.html)
The multi-argument min() function returns the argument with the minimum value. (source lang_corefunc.html, checked-by: th3/cov1/func02.test, th3/req1/func03.test)
All journal headers within the same journal must contain the same database page size and sector size. (source fileformat2.html)
Cautious programmers might include assert() statements in their application to verify that values returned by these interfaces match the macros in the header, and thus insure that the application is compiled with matching library and header files. assert( sqlite3_libversion_number()==SQLITE_VERSION_NUMBER ); assert( strcmp(sqlite3_sourceid(),SQLITE_SOURCE_ID)==0 ); assert( strcmp(sqlite3_libversion(),SQLITE_VERSION)==0 ); (source c3ref/libversion.html, checked-by: th3/mkth3.tcl)
Compute the date and time given a unix timestamp 1092941466, and compensate for your local timezone. SELECT datetime(1092941466, 'unixepoch', 'localtime'); (source lang_datefunc.html)
Transactions created using BEGIN...COMMIT do not nest. (source lang_transaction.html)
The sub-query is not a compound select, or it is a UNION ALL compound clause made up entirely of non-aggregate queries, and the parent query: is not itself part of a compound select, is not an aggregate or DISTINCT query, and has no other tables or sub-selects in the FROM clause. (source optoverview.html)
SQLite will use no more than two scratch buffers per thread. (source c3ref/c_config_getmalloc.html)
A power failure or program crash or OS crash will cause the outer-most transaction to rollback, undoing all changes that have occurred within that outer transaction, even changes that have supposedly been "committed" by the RELEASE command. (source lang_savepoint.html)
But there can not be gaps in the columns of the index that are used. (source optoverview.html)

(source lang_expr.html, checked-by: tcl/e_expr.test)
If the LIMIT expression evaluates to a negative value, then there is no upper bound on the number of rows returned. (source lang_select.html, checked-by: tcl/e_select.test)
First, queries against the primary key are efficient: SELECT * FROM demo_index WHERE id=1; (source rtree.html)
To change auto-vacuum modes, first use the auto_vacuum pragma to set the new desired mode, then invoke the VACUUM command to reorganize the entire database file. (source pragma.html, checked-by: th3/req1/pragma07.test)

(source lang_createindex.html, checked-by: th3/req1/createidx01.test)
If sqlite3_backup_step() cannot obtain a required file-system lock, then the busy-handler function is invoked (if one is specified). (source c3ref/backup_finish.html)
The memory space used to hold strings and BLOBs is freed automatically. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test, th3/req1/column02.test, th3/req1/column03.test)
The English language error message for foreign key DML errors is usually "foreign key mismatch" but can also be "no such table" if the parent table does not exist. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys07.test)
If aConstraintUsage[].omit is true, then the constraint is assumed to be fully handled by the virtual table and is not checked again by SQLite. (source c3ref/index_info.html)
Then an efficient way to find the name of all objects located within the North Carolina 12th District, one may be to run a query like this: SELECT objname FROM demo_data, demo_index WHERE demo_data.id=demo_index.id AND contained_in(demo_data.boundary, :boundary) AND minX>=-81.0 AND maxX=35.0 AND maxY (source rtree.html)
The callback function registered by sqlite3_profile() is invoked as each SQL statement finishes. (source c3ref/profile.html)
If the configured action is "SET NULL", then when a parent key is deleted (for ON DELETE SET NULL) or modified (for ON UPDATE SET NULL), the child key columns of all rows in the child table that mapped to the parent key are set to contain SQL NULL values. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys16.test)
This saves disk I/O but at the expense of database safety and integrity. (source pragma.html, checked-by: th3/req1/pragma25.test)
A value of 2 means UTF-16le. (source fileformat2.html)
If the 4th parameter to the sqlite3_result_text* interfaces or sqlite3_result_blob is a non-NULL pointer, then SQLite calls that function as the destructor on the text or BLOB result when it has finished using that result. (source c3ref/result_blob.html, checked-by: th3/req1/result02.test)
For a trigger, the tbl_name column stores the name of the table or view that causes the trigger to fire. (source fileformat2.html)
Each term of the ORDER BY clause is processed separately and may be matched against result columns from different SELECT statements in the compound. (source lang_select.html, checked-by: tcl/e_select.test)
This routine returns SQLITE_OK if shared cache was enabled or disabled successfully. An error code is returned otherwise. (source c3ref/enable_shared_cache.html)
The REPLACE command is an alias for the "INSERT OR REPLACE" variant of the INSERT command. (source lang_replace.html, checked-by: slt/slt_lang_replace.test, tcl/e_insert.test, th3/req1/replace01.test)
If the SELECT statement is a simple SELECT, then an ORDER BY may contain any arbitrary expressions. (source lang_select.html, checked-by: tcl/e_select.test)
Each new VFS becomes the default VFS if the makeDflt flag is set. (source c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test)
This routine sets a callback function that might be invoked whenever an attempt is made to open a database table that another thread or process has locked. (source c3ref/busy_handler.html)
A value of 5 means the page is an interior table b-tree page. (source fileformat2.html)
For the index above and WHERE clause like this: ... WHERE a=5 AND b IN (1,2,3) AND c IS NULL AND d='hello' The first four columns a, b, c, and d of the index would be usable since those four columns form a prefix of the index and are all bound by equality constraints. (source optoverview.html)
Equals can be either = or ==. (source lang_expr.html, checked-by: tcl/e_expr.test)
The database name is "main" for the main database, "temp" for the temporary database, or the name specified after the AS keyword in an ATTACH statement for an attached database. (source c3ref/backup_finish.html, checked-by: th3/req1/backup02.test)
Rowid values may be modified using an UPDATE statement in the same way as any other column value can, either using one of the built-in aliases ("rowid", "oid" or "_rowid_") or by using an alias created by an integer primary key. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
In the legacy interface, the return value will be either SQLITE_BUSY, SQLITE_DONE, SQLITE_ROW, SQLITE_ERROR, or SQLITE_MISUSE. (source c3ref/step.html)
If an element of a result row is NULL then the corresponding string pointer for the sqlite3_exec() callback is a NULL pointer. (source c3ref/exec.html, checked-by: th3/req1/exec01.test)
For CURRENT_DATE, "YYYY-MM-DD". (source lang_createtable.html, checked-by: tcl/e_createtable.test)
If you ever delete rows or if you ever create a row with the maximum possible ROWID, then ROWIDs from previously deleted rows might be reused when creating new rows and newly created ROWIDs might not be in strictly ascending order. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
This private database will be automatically deleted as soon as the database connection is closed. (source c3ref/open.html)
When running in shared-cache mode, a database operation may fail with an SQLITE_LOCKED error if the required locks on the shared-cache or individual tables within the shared-cache cannot be obtained. (source c3ref/unlock_notify.html)
If the input text contains no SQL (if the input is an empty string or a comment) then *ppStmt is set to NULL. (source c3ref/prepare.html, checked-by: th3/req1/prepare01.test)
However, changing from "none" to "full" or "incremental" can only occur when the database is new (no tables have yet been created) or by running the VACUUM command. (source pragma.html, checked-by: th3/req1/pragma07.test)
Only a single authorizer can be in place on a database connection at a time. Each call to sqlite3_set_authorizer overrides the previous call. (source c3ref/set_authorizer.html)
SAVEPOINTs are a method of creating transactions, similar to BEGIN and COMMIT, except that the SAVEPOINT and RELEASE commands are named and may be nested. (source lang_savepoint.html)
In this case the result of evaluating the left-most expression in the VALUES list is inserted into the left-most column of the new row, and so on. (source lang_insert.html, checked-by: tcl/e_insert.test)
To do so, a foreign key definition may be added by modifying the declaration of the track table to the following: CREATE TABLE track( trackid INTEGER, trackname TEXT, trackartist INTEGER, FOREIGN KEY(trackartist) REFERENCES artist(artistid) ); (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys01.test)
If the HAVING clause is an aggregate expression, it is evaluated across all rows in the group. (source lang_select.html, checked-by: tcl/e_select.test)
If no collating function is explicitly defined, then the collating function defaults to BINARY. (source datatype3.html, checked-by: th3/req1/datatype3_09.test)
A call to sqlite3_interrupt(D) that occurs when there are no running SQL statements is a no-op and has no effect on SQL statements that are started after the sqlite3_interrupt() call returns. (source c3ref/interrupt.html)
To cast a BLOB value to TEXT, the sequence of bytes that make up the BLOB is interpreted as text encoded using the database encoding. (source lang_expr.html, checked-by: tcl/e_expr.test)
This statement detaches an additional database connection previously attached using the ATTACH statement. (source lang_detach.html)
Collation names that compare equal according to sqlite3_strnicmp() are considered to be the same name. (source c3ref/create_collation.html, checked-by: th3/req1/createcoll01.test)
A single zero-byte separates the xOpen filename argument from the key of the first query parameters, each key and value, and each subsequent key from the prior value. (source uri.html)
When comparing values, if the parent key column has an affinity, then that affinity is applied to the child key value before the comparison is performed. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys03.test)
The "RESTRICT" action means that the application is prohibited from deleting (for ON DELETE RESTRICT) or modifying (for ON UPDATE RESTRICT) a parent key when there exists one or more child keys mapped to it. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys16.test)
The first parameter "n" is the total size of the buffer, including space for the zero terminator. (source c3ref/mprintf.html, checked-by: th3/req1/malloc01.test)
The amount of space allocated by sqlite3_aggregate_context(C,N) is determined by the N parameter on first successful call. Changing the value of N in subsequent call to sqlite3_aggregate_context() within the same aggregate function instance will not resize the memory allocation. (source c3ref/aggregate_context.html, checked-by: th3/req1/aggcntx01.test)
This API is only available if the library was compiled with the SQLITE_ENABLE_COLUMN_METADATA C-preprocessor symbol defined. (source c3ref/table_column_metadata.html)
When the callback returns SQLITE_DENY, the sqlite3_prepare_v2() or equivalent call that triggered the authorizer will fail with an error message explaining that access is denied. (source c3ref/set_authorizer.html)
The third argument is the number of slots. (source c3ref/c_dbconfig_enable_fkey.html, checked-by: src/main.c, th3/req1/dbconfig01.test)
Or, if the dataset contains zero rows, then each non-aggregate expression is evaluated against a row consisting entirely of NULL values. (source lang_select.html, checked-by: tcl/e_select.test)
Automatically started transactions are committed when the last query finishes. (source lang_transaction.html)
An individual database connections D can reduce its maximum parameter number below the compile-time maximum using the sqlite3_limit(D, SQLITE_LIMIT_VARIABLE_NUMBER,...) interface. (source lang_expr.html)
The LIKE operator is case sensitive by default for unicode characters that are beyond the ASCII range. (source lang_expr.html, checked-by: tcl/e_expr.test)
In this case all scalar expressions are evaluated before any assignments are made. (source lang_update.html, checked-by: slt/slt_lang_update.test, tcl/e_update.test)
The memory returned by sqlite3_malloc() and sqlite3_realloc() is always aligned to at least an 8 byte boundary, or to a 4 byte boundary if the SQLITE_4_BYTE_ALIGNED_MALLOC compile-time option is used. (source c3ref/free.html, checked-by: src/malloc.c, th3/req1/malloc02.test)
The two syntaxes yield identical results. (source pragma.html, checked-by: th3/req1/pragma01.test)
Any number of levels of indirection are allowed. (source c3ref/unlock_notify.html)
This function returns the number of direct row changes in the most recent INSERT, UPDATE, or DELETE statement within the same trigger context. (source c3ref/changes.html)
An attempt to change the journal_mode of an in-memory database to any setting other than MEMORY or OFF is ignored. (source pragma.html, checked-by: th3/req1/pragma23.test)
Information about the ORDER BY clause is stored in aOrderBy[]. (source c3ref/index_info.html)
SQLite uses dynamic run-time typing. (source c3ref/column_decltype.html)
The sqlite_compileoption_get() SQL function is a wrapper around the sqlite3_compileoption_get() C/C++ function. (source lang_corefunc.html, checked-by: src/func.c, th3/cov1/ctime02.test)
If two or more COLLATE operator subexpressions appear anywhere in a comparison, the left most explicit collating function is used regardless of how deeply the COLLATE operators are nested in the expression and regardless of how the expression is parenthesized. (source datatype3.html, checked-by: th3/req1/datatype3_09.test)
The returned string pointer is valid until either the prepared statement is destroyed by sqlite3_finalize() or until the statement is automatically reprepared by the first call to sqlite3_step() for a particular run or until the next call to sqlite3_column_name() or sqlite3_column_name16() on the same column. (source c3ref/column_name.html)
The SQLITE_OPEN_PRIVATECACHE flag causes the database connection to not participate in shared cache mode even if it is enabled. (source c3ref/open.html)
You can then access the ROWID using any of four different names, the original three names described above or the name given to the INTEGER PRIMARY KEY column. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
The 4-byte big-endian integer at offset 36 stores stores the total number of pages on the freelist. (source fileformat2.html, checked-by: th3/req1/pragma21.test)
The precedence of the BETWEEN operator is the same as the precedence as operators == and != and LIKE and groups left to right. (source lang_expr.html, checked-by: tcl/e_expr.test)
Hence, the string '3.0e+5' is stored in a column with NUMERIC affinity as the integer 300000, not as the floating point value 300000.0. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
The "temp" database (in which TEMP tables and indices are stored) and in-memory databases always uses exclusive locking mode. (source pragma.html, checked-by: th3/req1/pragma04.test)
If the application using SQLite crashes in the middle of a transaction when the MEMORY journaling mode is set, then the database file will very likely go corrupt. (source pragma.html, checked-by: th3/req1/pragma25.test)
If no algorithm is specified anywhere, the ABORT algorithm is used. (source lang_conflict.html, checked-by: th3/req1/conflict03.test)
The second column is the "main" for the main database file, "temp" for the database file used to store TEMP objects, or the name of the ATTACHed database for other database files. (source pragma.html, checked-by: th3/req1/pragma14.test)
The index for named parameters can be looked up using the sqlite3_bind_parameter_index() API if desired. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
Views are read-only in SQLite. (source lang_createview.html)
The first argument to the sqlite3_bind_*() routines is always a pointer to the sqlite3_stmt object returned from sqlite3_prepare_v2() or its variants. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
Any callback set by a previous call to sqlite3_commit_hook() for the same database connection is overridden. (source c3ref/commit_hook.html)
The sqlite3_create_collation_v2() works like sqlite3_create_collation() with the addition that the xDestroy callback is invoked on pArg when the collating function is deleted. (source c3ref/create_collation.html, checked-by: th3/req1/createcoll01.test)
The object returned by sqlite3_column_value() is an unprotected sqlite3_value object. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
The schema-version is usually only manipulated internally by SQLite. It is incremented by SQLite whenever the database schema is modified (by creating or dropping a table or index). (source pragma.html, checked-by: th3/req1/pragma28.test)
It is not an error to create a table that has the same name as an existing trigger. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
In the DELETE mode, the rollback journal is deleted at the conclusion of each transaction. (source pragma.html, checked-by: th3/req1/pragma24.test)
A WAL always grows from beginning toward the end. (source fileformat2.html)
When synchronous is NORMAL (1), the SQLite database engine will still sync at the most critical moments, but less often than in FULL mode. (source pragma.html)
And you can UPDATE, DELETE, INSERT or even DROP the shadow tables, though doing so will corrupt your R*Tree index. (source rtree.html)
For the index above and WHERE clause like this: ... WHERE a=5 OR b IN (1,2,3) OR c NOT NULL OR d='hello' The index is not usable because the WHERE clause terms are connected by OR instead of AND. (source optoverview.html)
The table name must be unqualified for INSERT statements that occur within CREATE TRIGGER statements. (source lang_insert.html, checked-by: tcl/e_insert.test)
If an INSERT statement attempts to insert a blob value, or a string or real value that cannot be losslessly converted to an integer into an integer primary key or rowid column, a "datatype mismatch" error occurs and the statement is aborted. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
Running VACUUM ensures that each table and index is largely stored contiguously within the database file. (source lang_vacuum.html, checked-by: tcl/e_vacuum.test)
Otherwise, if the expression sorted by an ORDER BY clause is a column, then the collating sequence of the column is used to determine sort order. (source datatype3.html, checked-by: th3/req1/datatype3_10.test)
If a deferred foreign key constraint is violated, then an error is reported when the user attempts to commit the transaction if the foreign key constraint violations still exist at that point. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys22.test)
The journal_size_limit pragma may be used to limit the size of rollback-journal and WAL files left in the file-system after transactions or checkpoints. (source pragma.html, checked-by: th3/req1/pragma26.test)
This interface is used to retrieve runtime status information about the performance of SQLite, and optionally to reset various highwater marks. (source c3ref/status.html)
But extensions can override the match() function with more helpful logic. (source lang_expr.html, checked-by: tcl/e_expr.test)
Each page record stores a copy of the content of a page from the database file before it was changed. (source fileformat2.html)
A simple function can be used in any expression. (source lang_expr.html)
The third column of output is the name of the column being indexed. (source pragma.html, checked-by: th3/req1/pragma15.test)
Unless the table to which the trigger is attached is in the TEMP database, the table being updated by the trigger program must reside in the same database as it. (source lang_update.html, checked-by: tcl/e_update.test)
Unbound parameters are interpreted as NULL. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
The result set must contain a single column. (source optoverview.html)
If X is NULL then length(X) is NULL. (source lang_corefunc.html, checked-by: th3/cov1/func01.test)
As well as SQLITE_OK and SQLITE_DONE, a call to sqlite3_backup_step() may return SQLITE_READONLY, SQLITE_NOMEM, SQLITE_BUSY, SQLITE_LOCKED, or an SQLITE_IOERR_XXX extended error code. (source c3ref/backup_finish.html)
The second pointer map page will be on page J+3 and that ptrmap page will provide back pointer information for pages J+4 through 2*J+3 inclusive. (source fileformat2.html)
For the right-most column of an index that is used, there can be up to two inequalities that must sandwich the allowed values of the column between two extremes. (source optoverview.html)

(source lang_detach.html)
A single WAL file can be reused multiple times. (source fileformat2.html)
If the busy-handler returns non-zero before the lock is available, then SQLITE_BUSY is returned to the caller. (source c3ref/backup_finish.html)
Mutexes created using SQLITE_MUTEX_RECURSIVE can be entered multiple times by the same thread. In such cases the, mutex must be exited an equal number of times before another thread can enter. (source c3ref/mutex_alloc.html)
The cache query parameter determines if the new database is opened using shared cache mode or with a private cache. (source uri.html)
In this case, if both operands are NULL, then the IS operator evaluates to 1 (true) and the IS NOT operator evaluates to 0 (false). (source lang_expr.html, checked-by: tcl/e_expr.test)
There is a limit, set using sqlite3_limit() and SQLITE_LIMIT_ATTACHED, to the number of databases that can be simultaneously attached to a single database connection. (source lang_attach.html, checked-by: th3/req1/attach01.test)
The fourth parameter is an arbitrary client data pointer that is passed through into the xCreate and xConnect methods of the virtual table module when a new virtual table is be being created or reinitialized. (source c3ref/create_module.html)
PRAGMA journal_mode; PRAGMA database.journal_mode; PRAGMA journal_mode = DELETE | TRUNCATE | PERSIST | MEMORY | WAL | OFF PRAGMA database.journal_mode = DELETE | TRUNCATE | PERSIST | MEMORY | WAL | OFF This pragma queries or sets the journal mode for databases associated with the current database connection. (source pragma.html, checked-by: th3/req1/pragma23.test)

(source lang_select.html, checked-by: tcl/e_select.test)
The xMutexEnd() interface is invoked exactly once for each call to sqlite3_shutdown(). (source c3ref/mutex_methods.html)
The strftime() routine returns the date formatted according to the format string specified as the first argument. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
If the result is a numeric value then sqlite3_column_bytes() uses sqlite3_snprintf() to convert that value to a UTF-8 string and returns the number of bytes in that string. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
Following the size varint are one or more additional varints, one per column. (source fileformat2.html)
If X is NULL or an empty string, then a checkpoint is run on all databases of connection D. (source c3ref/wal_checkpoint.html)
Each ORDER BY expression may be optionally followed by one of the keywords ASC (smaller values are returned first) or DESC (larger values are returned first). (source lang_select.html, checked-by: tcl/e_select.test)
Each modifier is a transformation that is applied to the time value to its left. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
If the argument N is zero then the soft heap limit is disabled. (source c3ref/soft_heap_limit64.html, checked-by: th3/req1/softheaplimit02.test)
The largest Fibonacci weight occurs on the first element of the sequence being summed. (source fileformat2.html)
When case_sensitive_like is disabled, the default LIKE behavior is expressed. (source pragma.html, checked-by: th3/req1/pragma10.test)
If the UNIQUE keyword appears between CREATE and INDEX then duplicate index entries are not allowed. (source lang_createindex.html, checked-by: th3/req1/createidx01.test)
A column name can be any of the names defined in the CREATE TABLE statement or one of the following special identifiers: "ROWID", "OID", or "_ROWID_". (source lang_expr.html)
Note that the unary + operator also removes type affinity from an expression, and in some cases this can cause subtle changes in the meaning of an expression. (source optoverview.html)
These routines provide a means to determine the database, table, and table column that is the origin of a particular result column in SELECT statement. (source c3ref/column_database_name.html)
If the URI contains an authority, then it must be either an empty string or the string "localhost". (source c3ref/open.html)
Freeblocks are always connected in order of increasing offset. (source fileformat2.html)
The collating sequence used for expressions of the form "x IN (y, z, ...)" is the collating sequence of x. (source datatype3.html, checked-by: th3/req1/datatype3_10.test)
If the function is registered using the sqlite3_collation_needed() API, then it is passed the names of undefined collation sequences as strings encoded in UTF-8. (source c3ref/collation_needed.html)
If a WHERE clause is specified, the WHERE expression is evaluated for each row in the input data as a boolean expression. All rows for which the WHERE clause expression evaluates to false are excluded from the dataset before continuing. (source lang_select.html, checked-by: tcl/e_select.test)
Each of the named columns of the new row is populated with the results of evaluating the corresponding VALUES expression. (source lang_insert.html, checked-by: tcl/e_insert.test)
Any of these arguments may be NULL, in which case the corresponding element of metadata is omitted. (source c3ref/table_column_metadata.html)
If the declared type contains the string "INT" then it is assigned INTEGER affinity. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
Terms of the WHERE clause can be manually disqualified for use with indices by prepending a unary + operator to the column name. (source optoverview.html)
If the source database is modified by an external process or via a database connection other than the one being used by the backup operation, then the backup will be automatically restarted by the next call to sqlite3_backup_step(). (source c3ref/backup_finish.html)
To overcome this problem, SQLite attempts to flatten subqueries in the FROM clause of a SELECT. (source optoverview.html)
A single quote within the string can be encoded by putting two single quotes in a row - as in Pascal. (source lang_expr.html, checked-by: tcl/e_expr.test)
The first time the database is read in EXCLUSIVE mode, a shared lock is obtained and held. (source pragma.html, checked-by: th3/req1/pragma04.test)
A nested savepoint transaction may be RELEASEd while the database is in a state that does not satisfy a deferred foreign key constraint. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys15.test)
The subquery does not use aggregates or the outer query is not DISTINCT. (source optoverview.html)
The default behavior is for mutexes to be enabled. (source c3ref/threadsafe.html, checked-by: src/sqliteInt.h)
Assuming the library is compiled with foreign key constraints enabled, it must still be enabled by the application at runtime, using the PRAGMA foreign_keys command. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys04.test)
The only guarantee is that the destructor will be called before the metadata is dropped. (source c3ref/get_auxdata.html)
The SQLITE_FCNTL_VFSNAME opcode can be used to obtain the names of all VFSes in the VFS stack. (source c3ref/c_fcntl_chunk_size.html)
The values returned by these functions are only updated by sqlite3_backup_step(). (source c3ref/backup_finish.html)
If the result is NULL, then sqlite3_column_bytes() returns zero. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
The text in the sqlite_master.sql column is a copy of the original CREATE statement text that created the object, except normalized as described above and as modified by subsequent ALTER TABLE statements. (source fileformat2.html)
The RELEASE command is like a COMMIT for a SAVEPOINT. (source lang_savepoint.html)
Shared cache is disabled by default. (source c3ref/enable_shared_cache.html)
Whitespace and comments that follow the final semicolon are ignored. (source c3ref/complete.html, checked-by: th3/cov1/complete01.test)
The SQLITE_OPEN_SHAREDCACHE flag causes the database connection to be eligible to use shared cache mode, regardless of whether or not shared cache is enabled using sqlite3_enable_shared_cache(). (source c3ref/open.html)
Transaction control statements such as BEGIN, COMMIT, ROLLBACK, SAVEPOINT, and RELEASE cause sqlite3_stmt_readonly() to return true, since the statements themselves do not actually modify the database but rather they control the timing of when other statements modify the database. (source c3ref/stmt_readonly.html, checked-by: th3/cov1/vdbeapi14.test)
If the specified view cannot be found and an IF EXISTS clause is present in the DROP VIEW statement, then the statement is a no-op. (source lang_dropview.html, checked-by: tcl/e_dropview.test)
The result of avg() is always a floating point value as long as at there is at least one non-NULL input even if all inputs are integers. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
The "CROSS JOIN" join operator produces the same data as the "INNER JOIN", "JOIN" and "," operators (source lang_select.html, checked-by: tcl/e_select.test, tcl/e_select2.test)
These routines return the name assigned to a particular column in the result set of a SELECT statement. (source c3ref/column_name.html)
The ORDER BY clause on a DELETE statement is used only to determine which rows fall within the LIMIT. The order in which rows are deleted is arbitrary and is not influenced by the ORDER BY clause. (source lang_delete.html, checked-by: tcl/e_delete.test)
An expression that is a simple reference to a column value has the same affinity as the column. (source datatype3.html, checked-by: th3/req1/datatype3_05.test)
The result of the CASE expression is the evaluation of the THEN expression that corresponds to the first WHEN expression for which the comparison is true. (source lang_expr.html, checked-by: tcl/e_expr.test)
If the largest ROWID is equal to the largest possible integer (9223372036854775807) then the database engine starts picking positive candidate ROWIDs at random until it finds one that is not previously used. (source autoinc.html, checked-by: src/vdbe.c, th3/cov1/vdbe23.test, th3/req1/autoinc01.test)
The format for CURRENT_TIMESTAMP is "YYYY-MM-DD HH:MM:SS". (source lang_createtable.html, checked-by: tcl/e_createtable.test)
When a UNIQUE constraint violation occurs, the REPLACE algorithm deletes pre-existing rows that are causing the constraint violation prior to inserting or updating the current row and the command continues executing normally. (source lang_conflict.html, checked-by: th3/req1/conflict02.test)
Instead of cancelling the transaction, the ROLLBACK TO command restarts the transaction again at the beginning. (source lang_savepoint.html)
The result of total() is always a floating point value. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
Returns the size in bytes of the BLOB accessible via the successfully opened BLOB handle in its only argument. (source c3ref/blob_bytes.html, checked-by: th3/cov1/vdbeblob01.test)
SQLITE_LIMIT_COMPOUND_SELECT The maximum number of terms in a compound SELECT statement. (source c3ref/c_limit_attached.html, checked-by: th3/req1/limit02.test)
The 4-byte big-endian integer at offset 92 is the value of the change counter when the version number was stored. (source fileformat2.html)
The temp_store_directory pragma may modify this variable and cause it to point to memory obtained from sqlite3_malloc. (source c3ref/temp_directory.html)
Format 4 also adds two new boolean record type values (serial types 8 and 9. (source fileformat2.html)
A function implementation with a non-negative nArg parameter is a better match than a function implementation with a negative nArg. (source c3ref/create_function.html, checked-by: th3/req1/createfunc04.test)
If an INSERT statement attempts to insert a NULL value into a rowid or integer primary key column, the system chooses an integer value to use as the rowid automatically. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
If the result is a UTF-16 string, then sqlite3_column_bytes() converts the string to UTF-8 and then returns the number of bytes. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
4 N Original content of the page prior to the start of the transaction (source fileformat2.html)
The sqlite3_compileoption_get() function allows iterating over the list of options that were defined at compile time by returning the N-th compile time option string. (source c3ref/compileoption_get.html)
SQLite takes the text result from the application from the 2nd parameter of the sqlite3_result_text* interfaces. (source c3ref/result_blob.html, checked-by: th3/req1/result02.test)
The xShutdown() method is called by sqlite3_shutdown(). (source c3ref/pcache_methods2.html)
The sqlite3_result_blob() interface sets the result from an application-defined function to be the BLOB whose content is pointed to by the second parameter and which is N bytes long where N is the third parameter. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
This function is used to read data from an open BLOB handle into a caller-supplied buffer. N bytes of data are copied into buffer Z from the open BLOB, starting at offset iOffset. (source c3ref/blob_read.html, checked-by: th3/cov1/vdbeblob01.test)
The TRUNCATE journaling mode commits transactions by truncating the rollback journal to zero-length instead of deleting it. (source pragma.html, checked-by: th3/req1/pragma24.test)
The sqlite3_malloc() routine returns a pointer to a block of memory at least N bytes in length, where N is the parameter. (source c3ref/free.html, checked-by: th3/req1/malloc02.test)
Rows are assigned contiguously ascending rowid values, starting with 1, in the order that they are returned by the SELECT statement. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
If Z is omitted then substr(X,Y) returns all characters through the end of the string X beginning with the Y-th. (source lang_corefunc.html, checked-by: th3/cov1/func02.test)
The default collating function for all strings is BINARY. (source fileformat2.html)
If the database is opened (and/or created) successfully, then SQLITE_OK is returned. Otherwise an error code is returned. (source c3ref/open.html)
Tables in an attached database can be referred to using the syntax database-name.table-name. (source lang_attach.html, checked-by: th3/req1/attach01.test)
Writes to the BLOB that occurred before the BLOB handle expired are not rolled back by the expiration of the handle, though of course those changes might have been overwritten by the statement that expired the BLOB handle or by other independent statements. (source c3ref/blob_write.html)
An application can force the query planner to reread the statistics tables by running ANALYZE sqlite_master. (source lang_analyze.html, checked-by: th3/req1/analyze01.test)
Even though the function prototype shows that xEntryPoint() takes no arguments and returns void, SQLite invokes xEntryPoint() with three arguments and expects and integer result as if the signature of the entry point where as follows: int xEntryPoint( sqlite3 *db, const char **pzErrMsg, const struct sqlite3_api_routines *pThunk ); (source c3ref/auto_extension.html, checked-by: th3/req1/autoext01.test)
PRAGMA collation_list; Return a list of the collating sequences defined for the current database connection. (source pragma.html, checked-by: th3/req1/pragma13.test)
The list of query parameters parameters appended to the xOpen filename is terminated by a single zero-length key. (source uri.html)
A compound SELECT created using UNION ALL operator returns all the rows from the SELECT to the left of the UNION ALL operator, and all the rows from the SELECT to the right of it. (source lang_select.html, checked-by: tcl/e_select.test)
A value with storage class NULL is considered less than any other value (including another value with storage class NULL). (source datatype3.html, checked-by: th3/req1/datatype3_04.test)
However, when not in write-ahead log mode, the page_size and/or auto_vacuum properties of an existing database may be changed by using the page_size and/or pragma auto_vacuum pragmas and then immediately VACUUMing the database. (source lang_vacuum.html, checked-by: tcl/e_vacuum.test)
If parameter Y is present then it is used as the separator between instances of X. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
So to insert some data into our sample R*Tree index, we can do something like this: INSERT INTO demo_index VALUES( 1, -- Primary key -80.7749, -80.7747, -- Longitude range 30.3776, 30.3778 -- Latitude range ); INSERT INTO demo_index VALUES( 2, -81.0, -79.6, 35.0, 36.2 ); (source rtree.html)
The number of columns in the rows returned by a simple SELECT statement is equal to the number of expressions in the result expression list after substitution of * and alias.* expressions. (source lang_select.html, checked-by: tcl/e_select.test)
The sqlite3_commit_hook() interface registers a callback function to be invoked whenever a transaction is committed. (source c3ref/commit_hook.html)
sqlite3_release_memory() returns the number of bytes actually freed, which might be more or less than the amount requested. (source c3ref/release_memory.html, checked-by: th3/req1/releasemem01.test)
If the simple SELECT is a SELECT ALL, then the entire set of result rows are returned by the SELECT. (source lang_select.html, checked-by: tcl/e_select.test)
Sum() will throw an "integer overflow" exception if all inputs are integers or NULL and an integer overflow occurs at any point during the computation. (source lang_aggfunc.html, checked-by: th3/req1/aggfunc01.test)
A CREATE TABLE command operates the same whether or not foreign key constraints are enabled. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys21.test)
The operator % outputs the value of its left operand modulo its right operand. (source lang_expr.html, checked-by: tcl/e_expr.test)
This interface disables all automatic extensions previously registered using sqlite3_auto_extension(). (source c3ref/reset_auto_extension.html, checked-by: th3/req1/autoext01.test)
When searching database schemas for a named object, objects of types that cannot be used in the context of the reference are always ignored. (source lang_naming.html, checked-by: tcl/e_resolve.test)
Replacing the phrase above with any of the following creates an immediate foreign key constraint. NOT DEFERRABLE INITIALLY DEFERRED -- An immediate foreign key constraint NOT DEFERRABLE INITIALLY IMMEDIATE -- An immediate foreign key constraint NOT DEFERRABLE -- An immediate foreign key constraint DEFERRABLE INITIALLY IMMEDIATE -- An immediate foreign key constraint DEFERRABLE -- An immediate foreign key constraint (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys12.test)
sqlite> CREATE INDEX i1 ON t1(a); sqlite> EXPLAIN QUERY PLAN SELECT a, b FROM t1 WHERE a=1; 0|0|0|SEARCH TABLE t1 USING INDEX i1 (a=?) (~10 rows) (source eqp.html, checked-by: tcl/eqp.test)
As of SQLite version 3.6.19, the default setting for foreign key enforcement is OFF. (source pragma.html, checked-by: th3/req1/pragma18.test, th3/req1/pragma19.test)
If nByte is non-negative, then it is the maximum number of bytes read from zSql. (source c3ref/prepare.html, checked-by: th3/req1/prepare01.test)
A return of SQLITE_BUSY or SQLITE_LOCKED from sqlite3_backup_step() is not a permanent error and does not affect the return value of sqlite3_backup_finish(). (source c3ref/backup_finish.html)
Call the sqlite3_enable_load_extension() routine with onoff==1 to turn extension loading on and call it with onoff==0 to turn it back off again. (source c3ref/enable_load_extension.html)
Locks are not acquired until the first read or write operation. (source lang_transaction.html)
Casting a TEXT or BLOB value into NUMERIC first does a forced conversion into REAL but then further converts the result into INTEGER if and only if the conversion from REAL to INTEGER is lossless and reversible. (source lang_expr.html, checked-by: tcl/e_expr.test)
For the GLOB operator, the column must be indexed using the built-in BINARY collating sequence. (source optoverview.html)
If a statement modifies the contents of the database so that an immediate foreign key constraint is in violation at the conclusion the statement, an exception is thrown and the effects of the statement are reverted. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys12.test)
Finally, the database is flushed to persistent storage using another xSync method call. (source fileformat2.html)
Otherwise, if the ORDER BY expression is an alias to an expression that has been assigned a collation sequence using the postfix COLLATE operator, then the collation sequence assigned to the aliased expression is used. (source lang_select.html, checked-by: tcl/e_select.test)
When the flag is off, new databases are created using the latest file format which might not be readable or writable by versions of SQLite prior to 3.3.0. (source pragma.html, checked-by: th3/req1/pragma22.test)
Indirect deadlock is also detected, so the system is also considered to be deadlocked if connection B has registered for an unlock-notify callback on the conclusion of connection C's transaction, where connection C is waiting on connection A. (source c3ref/unlock_notify.html)
A NULL pointer can be used in place of "main" to refer to the main database file. (source c3ref/file_control.html)
Whenever a row in the parent table of a foreign key constraint is deleted, or when the values stored in the parent key column or columns are modified, the logical sequence of events is: Execute applicable BEFORE trigger programs, Check local (non foreign key) constraints, Update or delete the row in the parent table, Perform any required foreign key actions, Execute applicable AFTER trigger programs. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys19.test)
The checksum is an unsigned 32-bit integer computed as follows: Initialize the checksum to the checksum nonce value found in the journal header at offset 12. Initialize index X to be N-200 (where N is the size of a database page in bytes. Interpret the four bytes at offset X into the page as a 4-byte big-endian unsigned integer. Add the value of that integer to the checksum. Subtrace 200 from X. If X is greater than or equal to zero, go back to step 3. (source fileformat2.html)
BLOB literals are string literals containing hexadecimal data and preceded by a single "x" or "X" character. (source lang_expr.html, checked-by: tcl/e_expr.test)
Virtual terms can be used with indices to restrict a search. (source optoverview.html)
If "ro" is specified, then the database is opened for read-only access, just as if the SQLITE_OPEN_READONLY flag had been set in the third argument to sqlite3_prepare_v2(). (source c3ref/open.html, checked-by: tcl/e_uri.test)
Text values (odd serial types 13 and larger) sort after numeric values in the order determined by the columns collating function. (source fileformat2.html)
The table-name specified as part of a DELETE statement within a trigger body must be unqualified. (source lang_delete.html, checked-by: tcl/e_delete.test)
In other words, the database-name. prefix on the table name of the UPDATE is not allowed within triggers. (source lang_update.html, checked-by: tcl/e_update.test)
Thus INSERT OR FAIL, INSERT OR IGNORE, INSERT OR ROLLBACK, and INSERT OR ABORT make no changes to the return value of this routine when their insertion fails. (source c3ref/last_insert_rowid.html)
The sqlite3_exec() interface runs zero or more UTF-8 encoded, semicolon-separate SQL statements passed into its 2nd argument, in the context of the database connection passed in as its 1st argument. (source c3ref/exec.html, checked-by: th3/req1/exec01.test)

(source lang_savepoint.html)
This flag determines whether or not the F_FULLFSYNC syncing method is used on systems that support it. (source pragma.html, checked-by: th3/req1/pragma11b.test)
Or if no collating sequence is otherwise defined, the built-in BINARY collating sequence is used. (source lang_createindex.html, checked-by: th3/req1/createidx01.test)
If the discard parameter is zero, then the page may be discarded or retained at the discretion of page cache implementation. (source c3ref/pcache_methods2.html)
If the sub-query is a compound select, then all terms of the ORDER by clause of the parent must be simple references to columns of the sub-query. (source optoverview.html)
As long as the buffer size is greater than zero, sqlite3_snprintf() guarantees that the buffer is always zero-terminated. (source c3ref/mprintf.html, checked-by: th3/req1/malloc01.test)
SQLITE_LIMIT_SQL_LENGTH The maximum length of an SQL statement, in bytes. (source c3ref/c_limit_attached.html, checked-by: th3/req1/limit02.test)
Also, GLOB is case sensitive, unlike LIKE. (source lang_expr.html, checked-by: tcl/e_expr.test)
A negative value for the zeroblob results in a zero-length BLOB. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
There is a one-to-one mapping between rows in a table and entries in each index associated with that table. (source fileformat2.html)
An attempt to ATTACH a database with a different text encoding from the "main" database will fail. (source pragma.html, checked-by: th3/req1/pragma16.test)
If a NOT NULL constraint violation occurs, the REPLACE conflict resolution replaces the NULL value with he default value for that column, or if the column has no default value, then the ABORT algorithm is used. (source lang_conflict.html, checked-by: th3/req1/conflict02.test)
If the lossless conversion of TEXT to INTEGER or REAL is not possible then the value is stored using the TEXT storage class. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
The histogram data is only useful if the right-hand side of the constraint is a simple compile-time constant or parameter and not an expression. (source optoverview.html)
If a
The callback registered by this function replaces any existing callback registered using sqlite3_wal_hook(). (source c3ref/wal_autocheckpoint.html)
This interface can be used to retrieve a saved copy of the original SQL text used to create a prepared statement if that statement was compiled using either sqlite3_prepare_v2() or sqlite3_prepare16_v2(). (source c3ref/sql.html, checked-by: th3/mkth3.tcl, th3/req1/sql01.test)
PRAGMA reverse_unordered_selects; PRAGMA reverse_unordered_selects = boolean; (source pragma.html, checked-by: th3/req1/pragma27.test)
The depth of recursion for triggers has a hard upper limit set by the SQLITE_MAX_TRIGGER_DEPTH compile-time option and a run-time limit set by sqlite3_limit(db,SQLITE_LIMIT_TRIGGER_DEPTH,...). (source pragma.html)
For the purposes of the DEFAULT clause, an expression is considered constant provided that it does not contain any sub-queries or string constants enclosed in double quotes. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The CREATE TRIGGER statement is used to add triggers to the database schema. (source lang_createtrigger.html, checked-by: slt/slt_lang_createtrigger.test)
Affinity is applied to operands of a comparison operator prior to the comparison according to the following rules in the order shown: (source datatype3.html, checked-by: th3/req1/datatype3_05.test)
Aggregate min() returns NULL if and only if there are no non-NULL values in the group. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
Calling sqlite3_wal_hook() replaces any previously registered write-ahead log callback. (source c3ref/wal_hook.html)
The usual rules for selecting a collation sequence with which to compare text values apply when evaluating expressions in a GROUP BY clause. (source lang_select.html, checked-by: tcl/e_select.test)
Note that unlike that plain ROLLBACK command (without the TO keyword) the ROLLBACK TO command does not cancel the transaction. (source lang_savepoint.html)
Views are removed with the DROP VIEW command. (source lang_createview.html, checked-by: slt/slt_lang_createview.test)
If two or more tables in different databases have the same name and the database-name prefix is not used on a table reference, then the table chosen is the one in the database that was least recently attached. (source lang_attach.html, checked-by: th3/req1/attach01.test)
When nByte is non-negative, the zSql string ends at either the first '\000' or '\u0000' character or the nByte-th byte, whichever comes first. (source c3ref/prepare.html, checked-by: th3/req1/prepare01.test)
This API makes sure a global version of a function with a particular name and number of parameters exists. If no such function exists before this API is called, a new function is created. (source c3ref/overload_function.html)
The declared type of a column is used to determine the affinity of the column only. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
In particular, rows containing NULL values are not handled any differently from rows without NULL values. (source lang_expr.html, checked-by: tcl/e_expr.test)
The round(X,Y) function returns a floating-point value X rounded to Y digits to the right of the decimal point. (source lang_corefunc.html, checked-by: th3/cov1/func02.test)
Each component query of a compound query (UNION, UNION ALL, EXCEPT or INTERSECT) is assigned its own selectid and reported on separately. (source eqp.html, checked-by: th3/req1/eqp01.test)
All intervening SAVEPOINTs are canceled, however. (source lang_savepoint.html)
In other words, if many of the queries run against the FTS4 table use "ORDER BY docid DESC", then it may improve performance to add the "order=desc" option to the CREATE VIRTUAL TABLE statement. (source fts3.html)
Both the first and second forms of the pragma listed above return a single result row containing a single integer column - the value of the journal size limit in bytes. (source pragma.html, checked-by: th3/req1/pragma26.test)
If the journal mode could not be changed, the original journal mode is returned. (source pragma.html, checked-by: th3/req1/pragma23.test)
This option specifies a static memory buffer that SQLite can use for scratch memory. (source c3ref/c_config_getmalloc.html)
Transactions involving multiple attached databases are atomic, assuming that the main database is not ":memory:" and the journal_mode is not WAL. (source lang_attach.html, checked-by: th3/req1/attach02.test, th3/stress/crash002.test, th3/stress/crash003.test)
For the purposes of sorting rows, values are compared in the same way as for comparison expressions. (source lang_select.html, checked-by: tcl/e_select.test)
When a connection (known as the blocked connection) fails to obtain a shared-cache lock and SQLITE_LOCKED is returned to the caller, the identity of the database connection (the blocking connection) that has locked the required resource is stored internally. (source c3ref/unlock_notify.html)
On success, sqlite3_blob_read() returns SQLITE_OK. Otherwise, an error code or an extended error code is returned. (source c3ref/blob_read.html, checked-by: th3/cov1/vdbeblob01.test)
The rollback journal file can be deleted (source fileformat2.html)
The ORDER BY clause on an UPDATE statement is used only to determine which rows fall within the LIMIT. The order in which rows are modified is arbitrary and is not influenced by the ORDER BY clause. (source lang_update.html, checked-by: tcl/e_update.test)
The index for "?NNN" parameters is the value of NNN. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
The ADD COLUMN syntax is used to add a new column to an existing table. (source lang_altertable.html, checked-by: th3/req1/altertable01.test)
If the source database is modified by the using the same database connection as is used by the backup operation, then the backup database is automatically updated at the same time. (source c3ref/backup_finish.html)
It is only when the shared-memory wal-index is omitted, when the locking mode is EXCLUSIVE prior to the first WAL-mode database access, that the locking mode is stuck in EXCLUSIVE. (source wal.html, checked-by: th3/req1/pragma05.test)
In a database that uses ptrmap pages, all pages at locations identified by the computation in the previous paragraph must be ptrmap page and no other page may be a ptrmap page. Except, if the byte-lock page happens to fall on the same page number as a ptrmap page, then the ptrmap is moved to the following page for that one case. (source fileformat2.html)
If N is less than 1 then a 1-byte random blob is returned. (source lang_corefunc.html, checked-by: th3/req1/func03.test)
szPage will always a power of two. (source c3ref/pcache_methods2.html)
The implicit DELETE does not cause any SQL triggers to fire, but may invoke foreign key actions or constraint violations. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys16.test, th3/req1/foreignkeys22.test)
It must be harmless to invoke xMutexInit() multiple times within the same process and without intervening calls to xMutexEnd(). (source c3ref/mutex_methods.html)
If certain kinds of errors occur within a transaction, the transaction may or may not be rolled back automatically. The errors that cause the behavior include: SQLITE_FULL: database or disk full SQLITE_IOERR: disk I/O error SQLITE_BUSY: database in use by another process SQLITE_NOMEM: out or memory SQLITE_INTERRUPT: processing interrupted by application request (source lang_transaction.html)
If there is an error, *ppStmt is set to NULL. (source c3ref/prepare.html, checked-by: th3/req1/prepare01.test)
END TRANSACTION is an alias for COMMIT. (source lang_transaction.html)
Datatype conversions in comparisons of the form "x IN (SELECT y ...)" are handled is if the comparison were really "x=y". (source datatype3.html, checked-by: th3/req1/datatype3_05.test)
The sqlite3_result_error() and sqlite3_result_error16() routines make a private copy of the error message text before they return. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
The SQLITE_SOURCE_ID string contains the date and time of the check-in (UTC) and an SHA1 hash of the entire source tree. (source c3ref/c_source_id.html, checked-by: th3/req1/version01.test)
As an example, consider creating a two-dimensional R*Tree index for use in spatial queries: CREATE VIRTUAL TABLE demo_index USING rtree( id, -- Integer primary key minX, maxX, -- Minimum and maximum X coordinate minY, maxY -- Minimum and maximum Y coordinate ); (source rtree.html)
The following command-line session demonstrates this: sqlite> PRAGMA foreign_keys; 0 sqlite> PRAGMA foreign_keys = ON; sqlite> PRAGMA foreign_keys; 1 sqlite> PRAGMA foreign_keys = OFF; sqlite> PRAGMA foreign_keys; 0 (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys04.test)
The top-level SELECT statement is always assigned the selectid value 0. (source eqp.html, checked-by: th3/req1/eqp01.test)
The operand to the right of the LIKE operator contains the pattern and the left hand operand contains the string to match against the pattern. (source lang_expr.html, checked-by: tcl/e_expr.test)
The default busy callback is NULL. (source c3ref/busy_handler.html)
Any leading spaces in the TEXT value are ignored when converging from TEXT to REAL. (source lang_expr.html, checked-by: tcl/e_expr.test)
The 4-byte big-endian integer at offset 28 into the header stores the size of the database file in pages. (source fileformat2.html)

(source lang_select.html, checked-by: tcl/e_select.test)
Named parameters are also numbered. The number assigned is one greater than the largest parameter number already assigned. (source lang_expr.html, checked-by: tcl/e_expr.test)
If either operand is a column, then the collating function of that column is used with precedence to the left operand. (source datatype3.html, checked-by: th3/req1/datatype3_09.test)
When comparing a base expression against a WHEN expression, the same collating sequence, affinity, and NULL-handling rules apply as if the base expression and WHEN expression are respectively the left- and right-hand operands of an = operator. (source lang_expr.html, checked-by: tcl/e_expr.test)
In a well-formed b-tree page, the total number of bytes in fragments may not exceed 60. (source fileformat2.html)
The unary + is a no-op and will not slow down the evaluation of the test specified by the term. (source optoverview.html)
With synchronous=FULL in WAL mode, an additional sync operation of the WAL file happens after each transaction commit. (source pragma.html)
The 4-byte big-endian integer at offset 56 determines the encoding used for all text strings stored in the database. (source fileformat2.html)
An attempt to invoke the BEGIN command within a transaction will fail with an error, regardless of whether the transaction was started by SAVEPOINT or a prior BEGIN. (source lang_transaction.html)
A colon followed by an identifier name holds a spot for a named parameter with the name :AAAA. (source lang_expr.html, checked-by: tcl/e_expr.test)
No attempt is made to convert NULL or BLOB values. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
The explicit COMMIT command runs immediately, even if there are pending SELECT statements. (source lang_transaction.html)
The compound SELECT operators UNION, INTERSECT and EXCEPT perform implicit comparisons between values. (source datatype3.html, checked-by: th3/req1/datatype3_07.test)
The sqlite3_db_status() routine returns SQLITE_OK on success and a non-zero error code on failure. (source c3ref/db_status.html, checked-by: th3/req1/dbstatus01.test)
The SQLite core only provides implementations for these routines when it is compiled with the SQLITE_DEBUG flag. (source c3ref/mutex_held.html)
If the declared type for a column contains the string "BLOB" or if no type is specified then the column has affinity NONE. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
When secure-delete on, SQLite overwrites deleted content with zeros. (source pragma.html, checked-by: th3/cov1/pragma20.test)
For example: -- Database schema CREATE TABLE artist( artistid INTEGER PRIMARY KEY, artistname TEXT ); CREATE TABLE track( trackid INTEGER, trackname TEXT, trackartist INTEGER DEFAULT 0 REFERENCES artist(artistid) ON DELETE SET DEFAULT ); sqlite> SELECT * FROM artist; artistid artistname -------- ----------------- 3 Sammy Davis Jr. sqlite> SELECT * FROM track; trackid trackname trackartist ------- ----------------- ----------- 14 Mr. Bojangles 3 sqlite> -- Deleting the row from the parent table causes the child key sqlite> -- value of the dependent row to be set to integer value 0. However, this sqlite> -- value does not correspond to any row in the parent table. Therefore sqlite> -- the foreign key constraint is violated and an is exception thrown. sqlite> DELETE FROM artist WHERE artistname = 'Sammy Davis Jr.'; SQL error: foreign key constraint failed sqlite> -- This time, the value 0 does correspond to a parent table row. And sqlite> -- so the DELETE statement does not violate the foreign key constraint sqlite> -- and no exception is thrown. sqlite> INSERT INTO artist VALUES(0, 'Unknown Artist'); sqlite> DELETE FROM artist WHERE artistname = 'Sammy Davis Jr.'; sqlite> SELECT * FROM artist; artistid artistname -------- ----------------- 0 Unknown Artist sqlite> SELECT * FROM track; trackid trackname trackartist ------- ----------------- ----------- 14 Mr. Bojangles 0 (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys18.test)
The "none" setting means that auto-vacuum is disabled. (source pragma.html, checked-by: th3/req1/pragma07.test)

(source lang_savepoint.html)
If the result is NULL, then sqlite3_column_bytes16() returns zero. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
The third and fourth parameters to this routine are passed directly through to the second and third parameters of the xFileControl method. (source c3ref/file_control.html)
If page B is a ptrmap page then back-link information about page B+1 is provided by the first entry on the pointer map. Information about page B+2 is provided by the second entry. And so forth. (source fileformat2.html)
Calling sqlite3_close() with a NULL pointer argument is a harmless no-op. (source c3ref/close.html, checked-by: th3/cov1/main23.test)
If no ROWID is specified on the insert, or if the specified ROWID has a value of NULL, then an appropriate ROWID is created automatically. (source autoinc.html, checked-by: th3/req1/autoinc01.test)

(source lang_transaction.html)
The table-name specified as part of an UPDATE statement within a trigger body must be unqualified. (source lang_update.html, checked-by: tcl/e_update.test)
Freelist leaf pages bear no information that would need to be restored on a rollback and so they are not written to the journal prior to modification, in order to reduce disk I/O. (source fileformat2.html)
Table columns that do not appear in the column list are populated with the default column value (specified as part of the CREATE TABLE statement), or with NULL if no default value is specified. (source lang_insert.html, checked-by: tcl/e_insert.test)
If a memory allocation error occurs during the evaluation of any of these routines, a default value is returned. The default value is either the integer 0, the floating point number 0.0, or a NULL pointer. Subsequent calls to sqlite3_errcode() will return SQLITE_NOMEM. (source c3ref/column_blob.html, checked-by: th3/req1/column03.test)
If SQLite needs needs additional scratch memory beyond what is provided by this configuration option, then sqlite3_malloc() will be used to obtain the memory needed. (source c3ref/c_config_getmalloc.html)
If the table has previously held a row with the largest possible ROWID, then new INSERTs are not allowed and any attempt to insert a new row will fail with an SQLITE_FULL error. (source autoinc.html, checked-by: src/vdbe.c, th3/req1/autoinc01.test)

(source lang_createvtab.html)
The locking-mode is either NORMAL or EXCLUSIVE. (source pragma.html, checked-by: th3/req1/pragma04.test)
If any of the sqlite3_bind_*() routines are called with a NULL pointer for the prepared statement or with a prepared statement for which sqlite3_step() has been called more recently than sqlite3_reset(), then the call will return SQLITE_MISUSE. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
Note that case insensitivity only applies to latin1 characters - basically the upper and lower case letters of English in the lower 127 byte codes of ASCII. (source optoverview.html, checked-by: th3/cov1/pragma02.test)
In every case the first argument is a pointer to the prepared statement that is being evaluated (the sqlite3_stmt* that was returned from sqlite3_prepare_v2() or one of its variants) and the second argument is the index of the column for which information should be returned. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test, th3/req1/column02.test, th3/req1/column03.test)
When auto-vacuum is disabled and data is deleted data from a database, the database file remains the same size. (source pragma.html, checked-by: th3/req1/pragma07.test)
The rollback hook is invoked on a rollback that results from a commit hook returning non-zero, just as it would be with any other rollback. (source c3ref/commit_hook.html)
If the default value of the column is a constant NULL, text, blob or signed-number value, then that value is used directly in the new row. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The values returned by sqlite3_column_bytes() and sqlite3_column_bytes16() do not include the zero terminators at the end of the string. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
The optional conflict-clause allows the user to nominate a specific constraint conflict resolution algorithm to use during this one UPDATE command. (source lang_update.html, checked-by: tcl/e_update.test)
Unlike regular SQLite tables which can store data in a variety of datatypes and formats, the R*Tree indices rigidly enforce these two storage types. (source rtree.html)
Or, if a constraint definition does not include a conflict-clause or it is a CHECK constraint, the default conflict resolution algorithm is ABORT. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
Again, in this case the call to sqlite3_backup_step() can be retried later on. (source c3ref/backup_finish.html)
If the argument N is negative, then the number of cache pages is adjusted to use approximately N*1024 bytes of memory. (source pragma.html)
SQLITE_LIMIT_EXPR_DEPTH The maximum depth of the parse tree on any expression. (source c3ref/c_limit_attached.html, checked-by: th3/req1/limit02.test)
To mark a foreign key constraint as deferred, its declaration must include the following clause: DEFERRABLE INITIALLY DEFERRED -- A deferred foreign key constraint (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys12.test)
The full amount of memory used by the schemas is reported, even if the schema memory is shared with other database connections due to shared cache mode being enabled. (source c3ref/c_dbstatus_options.html, checked-by: th3/req1/dbstatus02.test)
Every value in SQLite has one of five fundamental datatypes: 64-bit signed integer 64-bit IEEE floating point number string BLOB NULL (source c3ref/c_blob.html)
The highest recorded value is returned in *pHighwater. (source c3ref/status.html)
The RELEASE command starts with the most recent addition to the transaction stack and releases savepoints backwards in time until it releases a savepoint with a matching savepoint-name. (source lang_savepoint.html)
When query results are sorted by an ORDER BY clause, values with storage class NULL come first, followed by INTEGER and REAL values interspersed in numeric order, followed by TEXT values in collating sequence order, and finally BLOB values in memcmp() order. (source datatype3.html, checked-by: th3/req1/datatype3_04.test)
Inner joins to the left and right of the outer join might be reordered if the optimizer thinks that is advantageous but the outer joins are always evaluated in the order in which they occur. (source optoverview.html)
The database-names 'main' and 'temp' refer to the main database and the database used for temporary tables. (source lang_attach.html, checked-by: th3/req1/attach01.test)
SQLITE_LIMIT_LIKE_PATTERN_LENGTH The maximum length of the pattern argument to the LIKE or GLOB operators. (source c3ref/c_limit_attached.html, checked-by: th3/req1/limit02.test)
N bytes of data are copied from the buffer Z into the open BLOB, starting at offset iOffset. (source c3ref/blob_write.html)
When multiple implementations of the same function are available, SQLite will pick the one that involves the least amount of data conversion. (source c3ref/create_function.html, checked-by: th3/req1/createfunc04.test)
The maximum value is the value that would be returned last in an ORDER BY on the same column. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
The number of columns in an index is limited to the value set by sqlite3_limit(SQLITE_LIMIT_COLUMN,...). (source lang_createindex.html, checked-by: th3/req1/createidx03.test)
Note that the authorizer callback is invoked only during sqlite3_prepare() or its variants. (source c3ref/set_authorizer.html)
A function where the encoding difference is between UTF16le and UTF16be is a closer match than a function where the encoding difference is between UTF8 and UTF16. (source c3ref/create_function.html, checked-by: th3/req1/createfunc04.test)
The subquery and the outer query do not both have ORDER BY clauses. (source optoverview.html)
Parameters of the form "?" without a following integer have no name and are referred to as "nameless" or "anonymous parameters". (source c3ref/bind_parameter_name.html, checked-by: th3/req1/bind04.test)
SQLITE_BUSY means that the database engine was unable to acquire the database locks it needs to do its job. (source c3ref/step.html)
To find all elements of the index that are contained within the vicinity of Charlotte, North Carolina, one might do: SELECT id FROM demo_index WHERE minX>=-81.08 AND maxX=35.00 AND maxY (source rtree.html)
This interface returns a pointer to the next prepared statement after pStmt associated with the database connection pDb. (source c3ref/next_stmt.html, checked-by: th3/cov1/vdbeapi04.test)
The sqlite3_memory_used() routine returns the number of bytes of memory currently outstanding (malloced but not freed). (source c3ref/memory_highwater.html)
When two BLOB values are compared, the result is determined using memcmp(). (source datatype3.html, checked-by: th3/req1/datatype3_04.test)
If Z is negative then the abs(Z) characters preceding the Y-th character are returned. (source lang_corefunc.html, checked-by: th3/cov1/func02.test)
The escape character followed by a percent symbol (%), underscore (_), or a second instance of the escape character itself matches a literal percent symbol, underscore, or a single escape character, respectively. (source lang_expr.html, checked-by: tcl/e_expr.test)
Usually, the parent key of a foreign key constraint is the primary key of the parent table. If they are not the primary key, then the parent key columns must be collectively subject to a UNIQUE constraint or have a UNIQUE index. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys07.test)
The CREATE VIEW command assigns a name to a pre-packaged SELECT statement. (source lang_createview.html)
A "row change" is a change to a single row of a single table caused by an INSERT, DELETE, or UPDATE statement. Rows that are changed as side effects of REPLACE constraint resolution, rollback, ABORT processing, DROP TABLE, or by any other mechanisms do not count as direct row changes. (source c3ref/changes.html)
The sqlite3_data_count(P) will return non-zero if previous call to sqlite3_step(P) returned SQLITE_ROW, except in the case of the PRAGMA incremental_vacuum where it always returns zero since each step of that multi-step pragma returns 0 columns of data. (source c3ref/data_count.html)
The default isolation level for SQLite is SERIALIZABLE. (source pragma.html)
The SQLITE_SEQUENCE table is created and initialized automatically whenever a normal table that contains an AUTOINCREMENT column is created. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
The sqlite3_result_text(), sqlite3_result_text16(), sqlite3_result_text16le(), and sqlite3_result_text16be() interfaces set the return value of the application-defined function to be a text string which is represented as UTF-8, UTF-16 native byte order, UTF-16 little endian, or UTF-16 big endian, respectively. (source c3ref/result_blob.html, checked-by: th3/req1/result02.test)
Newer versions of SQLite use the in-header database size if it is available but fall back to the actual file size if the in-header database size is not valid. (source fileformat2.html)
Note that SQLite allows the parenthesized list of scalar values on the right-hand side of an IN or NOT IN operator to be an empty list but most other SQL database database engines and the SQL92 standard require the list to contain at least one element. (source lang_expr.html, checked-by: slt/in1.test, slt/in2.test, tcl/tkt-80e031a00f.test)
The current value of the requested counter is returned. (source c3ref/stmt_status.html)
The count(*) function (with no arguments) returns the total number of rows in the group. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
There can only be a single busy handler for a particular database connection any any given moment. If another busy handler was defined (using sqlite3_busy_handler()) prior to calling this routine, that other busy handler is cleared. (source c3ref/busy_timeout.html)
For clarity: the values returned by sqlite3_column_bytes() and sqlite3_column_bytes16() are the number of bytes in the string, not the number of characters. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
After a BEGIN EXCLUSIVE, no other database connection except for read_uncommitted connections will be able to read the database and no other connection without exception will be able to write the database until the transaction is complete. (source lang_transaction.html)
Calls to sqlite3_close() return SQLITE_OK if the sqlite3 object is successfully destroyed and all associated resources are deallocated. (source c3ref/close.html)
The random() function returns a pseudo-random integer between -9223372036854775808 and +9223372036854775807. (source lang_corefunc.html, checked-by: th3/req1/func03.test)
The sqlite3_load_extension() interface attempts to load an SQLite extension library contained in the file zFile. (source c3ref/load_extension.html)
If foreign key constraints are enabled and a column with a REFERENCES clause is added, the column must have a default value of NULL. (source lang_altertable.html, checked-by: th3/req1/altertable01.test)
For an "ON UPDATE CASCADE" action, it means that the values stored in each dependent child key are modified to match the new parent key values. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys16.test)
This means that when VACUUMing a database, as much as twice the size of the original database file is required in free disk space. (source lang_vacuum.html)
A NULL result is considered untrue when evaluating WHEN terms. (source lang_expr.html, checked-by: tcl/e_expr.test)
Supported unary prefix operators are these: - + ~ NOT (source lang_expr.html, checked-by: tcl/e_expr.test)
No affinity is applied to comparison operands for the implicit comparisons associated with UNION, INTERSECT, or EXCEPT - the values are compared as is. (source datatype3.html, checked-by: th3/req1/datatype3_07.test)
If an error code is returned, that error will propagate back up through the SQLite code base to cause the statement that provoked the callback to report an error, though the commit will have still occurred. (source c3ref/wal_hook.html)
PRAGMA page_size; PRAGMA page_size = bytes; Query or set the page size of the database. (source pragma.html)
Parameters that are not assigned values using sqlite3_bind() are treated as NULL. (source lang_expr.html, checked-by: tcl/e_expr.test)
If the commit hook returns non-zero, then the COMMIT is converted into a ROLLBACK. (source c3ref/commit_hook.html)
If there is no ELSE expression and none of the WHEN expressions are true, then the overall result is NULL. (source lang_expr.html, checked-by: tcl/e_expr.test)
It is possible to have the same database file attached multiple times using different names, and detaching one connection to a file will leave the others intact. (source lang_detach.html)
The SQLITE_FCNTL_FILE_POINTER value for the op parameter causes a pointer to the underlying sqlite3_file object to be written into the space pointed to by the 4th parameter. (source c3ref/file_control.html)
PRAGMA recursive_triggers; PRAGMA recursive_triggers = boolean; Query, set, or clear the recursive trigger capability. (source pragma.html)
If foreign key constraints are enabled when it is prepared, the DROP TABLE command performs an implicit DELETE to remove all rows from the table before dropping it. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys16.test, th3/req1/foreignkeys22.test)
If the function pointer is NULL, the sqlite3_log() interface becomes a no-op. (source c3ref/c_config_getmalloc.html)
Any attempt to create a function with a longer name will result in SQLITE_MISUSE being returned. (source c3ref/create_function.html, checked-by: th3/req1/createfunc01.test)
Both read-only and read/write queries will cause a ROLLBACK to fail. (source lang_transaction.html)
The new column may take any of the forms permissible in a CREATE TABLE statement, with the following restrictions: (source lang_altertable.html, checked-by: th3/req1/altertable01.test)
Note that the order of the rules for determining column affinity is important. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
This option sets the threading mode to Multi-thread. (source c3ref/c_config_getmalloc.html)
The SQLITE_FCNTL_FILE_POINTER case is a short-circuit path which does not actually invoke the underlying sqlite3_io_methods. (source c3ref/file_control.html)
The sqlite3_reset(S) interface resets the prepared statement S back to the beginning of its program. (source c3ref/reset.html, checked-by: th3/req1/reset01.test)
If the simple SELECT is a SELECT DISTINCT, then duplicate rows are removed from the set of result rows before it is returned. (source lang_select.html, checked-by: tcl/e_select.test)
If SQLite is compiled with the SQLITE_THREADSAFE=0 compile-time option then the entire mutexing subsystem is omitted from the build and hence calls to sqlite3_config() with the SQLITE_CONFIG_GETMUTEX configuration option will return SQLITE_ERROR. (source c3ref/c_config_getmalloc.html)
An INTEGER or REAL value is less than any TEXT or BLOB value. (source datatype3.html, checked-by: th3/req1/datatype3_04.test)
The sqlite3_uint64 and sqlite_uint64 types can store integer values between 0 and +18446744073709551615 inclusive. (source c3ref/int64.html, checked-by: th3/req1/int64_01.test)
the complete database schema for efficient implementation of the foreign key constraint might be: CREATE TABLE artist( artistid INTEGER PRIMARY KEY, artistname TEXT ); CREATE TABLE track( trackid INTEGER, trackname TEXT, trackartist INTEGER REFERENCES artist ); CREATE INDEX trackindex ON track(trackartist); (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys09.test)
The sqlite3_blob_bytes() interface returns the size of the BLOB in bytes. (source c3ref/blob.html, checked-by: th3/cov1/vdbeblob01.test)
This is the number of rows inserted into transient indices that were created automatically in order to help joins run faster. (source c3ref/c_stmtstatus_counter.html)
Bindings are not cleared by the sqlite3_reset() routine. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
Extension loading must be enabled using sqlite3_enable_load_extension() prior to calling this API, otherwise an error will be returned. (source c3ref/load_extension.html)
Every column of every table has an associated collating function. (source datatype3.html, checked-by: th3/req1/datatype3_09.test)
The sqlite3_mutex_enter() and sqlite3_mutex_try() routines attempt to enter a mutex. (source c3ref/mutex_alloc.html)
The xShutdown method is only called from sqlite3_shutdown() so it does not need to be threadsafe either. (source c3ref/pcache_methods2.html)
The last_insert_rowid() function returns the ROWID of the last row insert from the database connection which invoked the function. (source lang_corefunc.html, checked-by: th3/req1/func01.test)
The schema-version and the user-version are big-endian 32-bit signed integers stored in the database header at offsets 40 and 60, respectively. (source pragma.html, checked-by: th3/req1/pragma28.test)
For the purposes of grouping rows, NULL values are considered equal. (source lang_select.html, checked-by: tcl/e_select.test)
If this flag is set, then the F_FULLFSYNC syncing method is used during checkpoint operations on systems that support F_FULLFSYNC. (source pragma.html, checked-by: th3/req1/pragma11.test)
A 1-dimensional R*Tree thus has 3 columns. (source rtree.html)
A zero is returned if no matching parameter is found. (source c3ref/bind_parameter_index.html, checked-by: th3/req1/bind03.test)
The registration remains valid until it is replaced by a different module or until the database connection closes. (source c3ref/module.html)
However, if an insert fails due to (for example) a uniqueness constraint, the ROWID of the failed insertion attempt might not be reused on subsequent inserts, resulting in gaps in the ROWID sequence. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
Numeric values (serial types 1 through 9) sort after NULLs and in numeric order. (source fileformat2.html)
A new R*Tree index is created as follows: CREATE VIRTUAL TABLE
If the 5th parameter to sqlite3_exec() is not NULL then any error message is written into memory obtained from sqlite3_malloc() and passed back through the 5th parameter. (source c3ref/exec.html, checked-by: th3/req1/exec01.test)
The returned value is one of SQLITE_INTEGER, SQLITE_FLOAT, SQLITE_TEXT, SQLITE_BLOB, or SQLITE_NULL. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
The last two forms change the journaling mode. (source pragma.html, checked-by: th3/req1/pragma23.test)
There are two basic forms of the CASE expression: those with a base expression and those without. (source lang_expr.html, checked-by: tcl/e_expr.test)
For the purposes of this routine, an INSERT is considered to be successful even if it is subsequently rolled back. (source c3ref/last_insert_rowid.html)
The second parameter is either the name of the database (i. (source c3ref/table_column_metadata.html)
The application can can also use a PRAGMA foreign_keys statement to determine if foreign keys are currently enabled. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys04.test)
Virtual tables methods can set an error message by assigning a string obtained from sqlite3_mprintf() to zErrMsg. (source c3ref/vtab.html, checked-by: th3/req1/vtab01.test)
If the table has never before contained any data, then a ROWID of 1 is used. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
When multiple database connections share the same cache, changing the secure-delete flag on one database connection changes it for them all. (source pragma.html, checked-by: th3/cov1/pragma21.test)
The second parameter to the logger function is a copy of the first parameter to the corresponding sqlite3_log() call and is intended to be a result code or an extended result code. (source c3ref/c_config_getmalloc.html)
A column that uses INTEGER affinity behaves the same as a column with NUMERIC affinity. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
SQLite does not use the lock-byte page. (source fileformat2.html)
If the default value of a column is CURRENT_TIME, CURRENT_DATE or CURRENT_TIMESTAMP, then the value used in the new row is a text representation of the current UTC date and/or time. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
A keyword enclosed in square brackets is an identifier. (source lang_keywords.html, checked-by: th3/req1/keyword01.test)
Indices are not required for child key columns (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys07.test)
The maximum and minimum embedded payload fractions and the leaf payload fraction values must be 64, 32, and 32. (source fileformat2.html)
For indices that are automatically created by UNIQUE or PRIMARY KEY constraints, the name is "sqlite_autoindex_TABLE_N" where TABLE is replaced by the name of the table that contains the constraint and N is an integer beginning with 1 and increasing by one with each constraint seen. (source fileformat2.html)
The second callback argument is one of SQLITE_INSERT, SQLITE_DELETE, or SQLITE_UPDATE, depending on the operation that caused the callback to be invoked. (source c3ref/update_hook.html)
SQLite understands the following binary operators, in order from highest to lowest precedence: || * / % + - << >> & | < <= > >= = == != <> IS IS NOT IN LIKE GLOB MATCH REGEXP AND OR (source lang_expr.html, checked-by: tcl/e_expr.test)
For all of these errors, SQLite attempts to undo just the one statement it was working on and leave changes from prior statements within the same transaction intact and continue with the transaction. (source lang_transaction.html)
If the largest root b-tree page value is zero, then the database must not contain ptrmap pages. (source fileformat2.html)
SQLITE_STATUS_SCRATCH_USED This parameter returns the number of allocations used out of the scratch memory allocator configured using SQLITE_CONFIG_SCRATCH. The value returned is in allocations, not in bytes. Since a single thread may only have one scratch allocation outstanding at time, this parameter also reports the number of threads using scratch memory at the same time. (source c3ref/c_status_malloc_count.html)
If a CHECK constraint violation occurs, the REPLACE conflict resolution algorithm always works like ABORT. (source lang_conflict.html, checked-by: src/insert.c, th3/req1/conflict02.test)
So just because a column is declared to contain a particular type does not mean that the data stored in that column is of the declared type. (source c3ref/column_decltype.html)
This routine returns 0 if pStmt is an SQL statement that does not return data (for example an UPDATE). (source c3ref/column_count.html, checked-by: th3/mkth3.tcl, th3/req1/datacnt01.test)
The added rows contain NULL values in the columns that would normally contain values copied from the right-hand input dataset. (source lang_select.html, checked-by: tcl/e_select.test)
If it is NULL, then all attached databases are searched for the table using the same algorithm used by the database engine to resolve unqualified table references. (source c3ref/table_column_metadata.html)
In this case the call to sqlite3_backup_step() can be retried later. (source c3ref/backup_finish.html)
If the locking mode is EXCLUSIVE when first entering WAL journal mode, then the locking mode cannot be changed to NORMAL until after exiting WAL journal mode. (source pragma.html, checked-by: th3/req1/pragma05.test)
If no database-name is specified and there exists both a table or index and a collation sequence of the specified name, SQLite interprets this as a request to rebuild the indices that use the named collation sequence. (source lang_reindex.html, checked-by: tcl/e_reindex.test)
If a database name is specified, then only the named database is searched for the named object. (source lang_naming.html, checked-by: tcl/e_resolve.test)
If it is set to "ASC" (the default), then the data structures are optimized for returning results in ascending order by docid. (source fts3.html)
The LIKE optimization will only be attempted if the right-hand side of the GLOB or LIKE operator is either literal string or a parameter that has been bound to a string literal. (source optoverview.html)
Keyword arguments can optionally appear in quotes. (source pragma.html, checked-by: th3/req1/pragma01.test)
The child key index does not have to be (and usually will not be) a UNIQUE index. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys09.test)
When comparing text values, the collating sequence associated with the parent key column is always used. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys03.test)
If index-name does not exist or cannot be used for the query, then the preparation of the SQL statement fails. (source lang_indexedby.html)
The SQLITE_TRANSIENT value means that the content will likely change in the near future and that SQLite should make its own private copy of the content before returning. (source c3ref/c_static.html, checked-by: th3/req1/clearbind01.test, th3/req1/static01.test)
The first parameter is a prepared statement. If this statement is a SELECT statement and the Nth column of the returned result set of that SELECT is a table column (not an expression or subquery) then the declared type of the table column is returned. (source c3ref/column_decltype.html)
The psow query parameter overrides the powersafe overwrite property of the database file being opened. (source uri.html)
The WHERE clause on a query is broken up into "terms" where each term is separated from the others by an AND operator. (source optoverview.html, checked-by: src/where.c)
The "." character is always used as the decimal point even if the locale setting specifies "," for this role - the use of "," for the decimal point would result in syntactic ambiguity. (source lang_expr.html)
Similarly, the "DEFAULT VALUES" form of the INSERT statement is supported for top-level INSERT statements only and not for INSERT statements within triggers. (source lang_insert.html, checked-by: tcl/e_insert.test)
In incremental mode, the separate incremental_vacuum pragma must be invoked to cause the auto-vacuum to occur. (source pragma.html, checked-by: th3/req1/pragma07.test)
As you would expect, it is not possible to manipulate the database to a state that violates the foreign key constraint by deleting or updating rows in the artist table either: sqlite> -- Attempting to delete the artist record for "Frank Sinatra" fails, since sqlite> -- the track table contains a row that refer to it. sqlite> DELETE FROM artist WHERE artistname = 'Frank Sinatra'; SQL error: foreign key constraint failed sqlite> -- Delete all the records from the track table that refer to the artist sqlite> -- "Frank Sinatra". Only then is it possible to delete the artist. sqlite> DELETE FROM track WHERE trackname = 'My Way'; sqlite> DELETE FROM artist WHERE artistname = 'Frank Sinatra'; sqlite> -- Try to update the artistid of a row in the artist table while there sqlite> -- exists records in the track table that refer to it. sqlite> UPDATE artist SET artistid=4 WHERE artistname = 'Dean Martin'; SQL error: foreign key constraint failed sqlite> -- Once all the records that refer to a row in the artist table have sqlite> -- been deleted, it is possible to modify the artistid of the row. sqlite> DELETE FROM track WHERE trackname IN('That''s Amore', 'Christmas Blues'); sqlite> UPDATE artist SET artistid=4 WHERE artistname = 'Dean Martin'; (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys01.test)
The other allowed parameters to sqlite3_mutex_alloc() (anything other than SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE) each return a pointer to a static preexisting mutex. (source c3ref/mutex_alloc.html)
PRAGMA read_uncommitted; PRAGMA read_uncommitted = boolean; Query, set, or clear READ UNCOMMITTED isolation. (source pragma.html)
The min() aggregate function returns the minimum non-NULL value of all values in the group. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
The extension can add new functions or collating sequences, but cannot modify or delete existing functions or collating sequences because those functions and/or collating sequences might be used elsewhere in the currently running SQL statement. (source lang_corefunc.html, checked-by: th3/cov1/func03.test)
If the FROM clause is omitted from a simple SELECT statement, then the input data is implicitly a single row zero columns wide (source lang_select.html, checked-by: tcl/e_select.test)
If the optional IF NOT EXISTS clause is present and another index with the same name already exists, then this command becomes a no-op. (source lang_createindex.html, checked-by: th3/req1/createidx01.test)
The following SQLite command-line session illustrates the effect of the foreign key constraint added to the track table: sqlite> SELECT * FROM artist; artistid artistname -------- ----------------- 1 Dean Martin 2 Frank Sinatra sqlite> SELECT * FROM track; trackid trackname trackartist ------- ----------------- ----------- 11 That's Amore 1 12 Christmas Blues 1 13 My Way 2 sqlite> -- This fails because the value inserted into the trackartist column (3) sqlite> -- does not correspond to row in the artist table. sqlite> INSERT INTO track VALUES(14, 'Mr. Bojangles', 3); SQL error: foreign key constraint failed sqlite> -- This succeeds because a NULL is inserted into trackartist. A sqlite> -- corresponding row in the artist table is not required in this case. sqlite> INSERT INTO track VALUES(14, 'Mr. Bojangles', NULL); sqlite> -- Trying to modify the trackartist field of the record after it has sqlite> -- been inserted does not work either, since the new value of trackartist (3) sqlite> -- Still does not correspond to any row in the artist table. sqlite> UPDATE track SET trackartist = 3 WHERE trackname = 'Mr. Bojangles'; SQL error: foreign key constraint failed sqlite> -- Insert the required row into the artist table. It is then possible to sqlite> -- update the inserted row to set trackartist to 3 (since a corresponding sqlite> -- row in the artist table now exists). sqlite> INSERT INTO artist VALUES(3, 'Sammy Davis Jr.'); sqlite> UPDATE track SET trackartist = 3 WHERE trackname = 'Mr. Bojangles'; sqlite> -- Now that "Sammy Davis Jr." (artistid = 3) has been added to the database, sqlite> -- it is possible to INSERT new tracks using this artist without violating sqlite> -- the foreign key constraint: sqlite> INSERT INTO track VALUES(15, 'Boogie Woogie', 3); (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys01.test)
After the error message is delivered up to the client application, the string will be automatically freed by sqlite3_free() and the zErrMsg field will be zeroed. (source c3ref/vtab.html, checked-by: th3/req1/vtab01.test)
SQLite uses a cost-based query planner that estimates the CPU and disk I/O costs of various competing query plans and chooses the plan that it thinks will be the fastest. (source optoverview.html)
The LIKE and GLOB optimizations consist of adding two virtual terms like this: column >= x AND column < y (source optoverview.html)
If the busy callback is NULL, then SQLITE_BUSY or SQLITE_IOERR_BLOCKED is returned immediately upon encountering the lock. (source c3ref/busy_handler.html)
If X is a string then characters indices refer to actual UTF-8 characters. (source lang_corefunc.html, checked-by: th3/cov1/func02.test)
Whenever the xFilename parameter is NULL it will also be the case that the flags parameter will include SQLITE_OPEN_DELETEONCLOSE. (source c3ref/vfs.html, checked-by: th3/mkth3.tcl)
If a numeric literal has a decimal point or an exponentiation clause, then it is a floating point literal. Otherwise is it is an integer literal. (source lang_expr.html)
SQLite uses the string pointed to by the 2nd parameter of sqlite3_result_error() or sqlite3_result_error16() as the text of an error message. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
The implementation of the new function always causes an exception to be thrown. (source c3ref/overload_function.html)
strftime(format, timestring, modifier, modifier, ...) (source lang_datefunc.html, checked-by: th3/req1/date01.test)
An error is still returned if the table cannot be created because of an existing index, even if the "IF NOT EXISTS" clause is specified. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
Each call to sqlite3_backup_step() sets two values inside the sqlite3_backup object: the number of pages still to be backed up and the total number of pages in the source database file. (source c3ref/backup_finish.html)
A value of 10 means the page is a leaf index b-tree page. (source fileformat2.html)
The LIKE operator does a pattern matching comparison. (source lang_expr.html, checked-by: tcl/e_expr.test)
The xDestroy callback is not called if the sqlite3_create_collation_v2() function fails. (source c3ref/create_collation.html, checked-by: th3/req1/createcoll01.test)
CREATE TABLE t1( t TEXT, -- text affinity by rule 2 nu NUMERIC, -- numeric affinity by rule 5 i INTEGER, -- integer affinity by rule 1 r REAL, -- real affinity by rule 4 no BLOB -- no affinity by rule 3 ); -- Values stored as TEXT, INTEGER, INTEGER, REAL, TEXT. INSERT INTO t1 VALUES('500.0', '500.0', '500.0', '500.0', '500.0'); SELECT typeof(t), typeof(nu), typeof(i), typeof(r), typeof(no) FROM t1; text|integer|integer|real|text -- Values stored as TEXT, INTEGER, INTEGER, REAL, REAL. DELETE FROM t1; INSERT INTO t1 VALUES(500.0, 500.0, 500.0, 500.0, 500.0); SELECT typeof(t), typeof(nu), typeof(i), typeof(r), typeof(no) FROM t1; text|integer|integer|real|real -- Values stored as TEXT, INTEGER, INTEGER, REAL, INTEGER. DELETE FROM t1; INSERT INTO t1 VALUES(500, 500, 500, 500, 500); SELECT typeof(t), typeof(nu), typeof(i), typeof(r), typeof(no) FROM t1; text|integer|integer|real|integer -- BLOBs are always stored as BLOBs regardless of column affinity. DELETE FROM t1; INSERT INTO t1 VALUES(x'0500', x'0500', x'0500', x'0500', x'0500'); SELECT typeof(t), typeof(nu), typeof(i), typeof(r), typeof(no) FROM t1; blob|blob|blob|blob|blob -- NULLs are also unaffected by affinity DELETE FROM t1; INSERT INTO t1 VALUES(NULL,NULL,NULL,NULL,NULL); SELECT typeof(t), typeof(nu), typeof(i), typeof(r), typeof(no) FROM t1; null|null|null|null|null (source datatype3.html, checked-by: th3/req1/datatype3_03.test)
A table created using CREATE TABLE AS has no PRIMARY KEY and no constraints of any kind. The default value of each column is NULL. The default collation sequence for each column of the new table is BINARY. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
All spaces following the first two keywords are converted into a single space. (source fileformat2.html)
If an INSERT occurs within a trigger or within a virtual table method, then this routine will return the rowid of the inserted row as long as the trigger or virtual table method is running. But once the trigger or virtual table method ends, the value returned by this routine reverts to what it was before the trigger or virtual table method began. (source c3ref/last_insert_rowid.html)
Each R*Tree index is a virtual table with an odd number of columns between 3 and 11. (source rtree.html)
When two TEXT values are compared an appropriate collating sequence is used to determine the result. (source datatype3.html, checked-by: th3/req1/datatype3_04.test)
If the specified table is actually a view, an error code is returned. (source c3ref/table_column_metadata.html)
You cannot DELETE, INSERT, or UPDATE a view. (source lang_createview.html, checked-by: slt/slt_lang_createview.test)
Support for the diagnostic functions sqlite3_compileoption_used() and sqlite3_compileoption_get() may be omitted by specifying the SQLITE_OMIT_COMPILEOPTION_DIAGS option at compile time. (source c3ref/compileoption_get.html)
These routines should return true if the mutex in their argument is held or not held, respectively, by the calling thread. (source c3ref/mutex_held.html)
However, in many cases you can use an INSTEAD OF trigger on the view to accomplish the same thing. (source lang_createview.html)
The xSetSystemCall(), xGetSystemCall(), and xNestSystemCall() interfaces are not used by the SQLite core. (source c3ref/vfs.html)
If the SQLITE_ENABLE_ATOMIC_WRITE option is disabled or if xDeviceCharacteristics reports no suitable atomic write page sizes, then the default page size is the larger of SQLITE_DEFAULT_PAGE_SIZE and the sector size as reported by the xSectorSize method of the sqlite3_io_methods object, but not more than SQLITE_MAX_DEFAULT_PAGE_SIZE. (source pragma.html)
Multiple collating functions can be registered using the same name but with different eTextRep parameters and SQLite will use whichever function requires the least amount of data transformation. (source c3ref/create_collation.html, checked-by: th3/req1/createcoll01.test)
In the current implementation, the update hook is not invoked when duplication rows are deleted because of an ON CONFLICT REPLACE clause. (source c3ref/update_hook.html)
The multi-argument min() function searches its arguments from left to right for an argument that defines a collating function and uses that collating function for all string comparisons. (source lang_corefunc.html, checked-by: th3/req1/func03.test)
The sqlite3_column_name() interface returns a pointer to a zero-terminated UTF-8 string and sqlite3_column_name16() returns a pointer to a zero-terminated UTF-16 string. (source c3ref/column_name.html)
The sort order may or may not be ignored depending on the database file format, and in particular the schema format number. (source lang_createindex.html, checked-by: th3/req1/createidx02.test)
Note that number of bytes stored on the index page is never less than M. (source fileformat2.html)
The eTextRep argument determines the encoding of strings passed to the collating function callback, xCallback. (source c3ref/create_collation.html, checked-by: th3/req1/createcoll01.test)
Calling sqlite3_free() with a pointer previously returned by sqlite3_malloc() or sqlite3_realloc() releases that memory so that it might be reused. (source c3ref/free.html, checked-by: th3/req1/malloc02.test)
The COLLATE clause optionally following each column name defines a collating sequence used for text entries in that column. (source lang_createindex.html, checked-by: th3/req1/createidx01.test)
If the action code is SQLITE_DELETE and the callback returns SQLITE_IGNORE then the DELETE operation proceeds but the truncate optimization is disabled and all rows are deleted individually. (source c3ref/set_authorizer.html)
The pArg argument is passed through to the callback. (source c3ref/commit_hook.html)
Immediately following the wal-header are zero or more frames. (source fileformat2.html)
The S and M arguments passed to sqlite3_backup_init(D,N,S,M) identify the database connection and database name of the source database, respectively. (source c3ref/backup_finish.html, checked-by: th3/req1/backup02.test)
This is the number of times that SQLite has stepped forward in a table as part of a full table scan. (source c3ref/c_stmtstatus_counter.html)
Any attempt to insert a duplicate entry will result in an error. (source lang_createindex.html, checked-by: th3/req1/createidx01.test)
The sqlite3_stmt_busy(S) interface returns false if S is a NULL pointer. (source c3ref/stmt_busy.html, checked-by: th3/cov1/vdbeapi03.test)
If the authority is not an empty string or "localhost", an error is returned to the caller. (source c3ref/open.html, checked-by: tcl/e_uri.test)
The VACUUM command may change the ROWIDs of entries in any tables that do not have an explicit INTEGER PRIMARY KEY. (source lang_vacuum.html, checked-by: tcl/e_vacuum.test)
Likewise, registering a callback using sqlite3_wal_hook() disables the automatic checkpoint mechanism configured by this function. (source c3ref/wal_autocheckpoint.html)
If the WAL contains no copies of page P that are valid and which are a commit frame or are followed by a commit frame, then page P is read from the database file. (source fileformat2.html)
Parameter OutputType Description 5th const char* Data type 6th const char* Name of default collation sequence 7th int True if column has a NOT NULL constraint 8th int True if column is part of the PRIMARY KEY 9th int True if column is AUTOINCREMENT (source c3ref/table_column_metadata.html)
A similar effect occurs when the original date is February 29 of a leapyear and the modifier is ±N years where N is not a multiple of four. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
If the resetFlag is true, then the highest record value is reset after *pHighwater is written. (source c3ref/status.html)
Boolean values are stored as integers 0 (false) and 1 (true). (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
A particular database will use either a rollback journal or a WAL, but not both at the same time. (source fileformat2.html)
A negative number implies no limit. (source pragma.html, checked-by: th3/req1/pragma26.test)
The next time SQLite attempts to open the database file, the presence of the rollback journal file will be detected and the journal will be automatically played back to restore the database to its state at the start of the incomplete transaction. (source fileformat2.html)
The sqlite3_create_module_v2() interface has a fifth parameter which is a pointer to a destructor for the pClientData. (source c3ref/create_module.html)
Notice that all other date and time functions can be expressed in terms of strftime(): FunctionEquivalent strftime() date(...) strftime('%Y-%m-%d', ...) time(...) strftime('%H:%M:%S', ...) datetime(...) strftime('%Y-%m-%d %H:%M:%S', ...) julianday(...) strftime('%J', ...) (source lang_datefunc.html, checked-by: th3/req1/date01.test)
If the implicit DELETE FROM
At various points during the compilation process, as logic is being created to perform various actions, the authorizer callback is invoked to see if those actions are allowed. (source c3ref/set_authorizer.html)
An aggregate SQL function requires an implementation of xStep and xFinal and NULL pointer must be passed for xFunc. (source c3ref/create_function.html, checked-by: th3/req1/createfunc03.test)
Each frame consists of a 24-byte frame-header followed by a page-size bytes of page data. (source fileformat2.html)
Pointers to the right of X refer to pages where all keys are greater than X. (source fileformat2.html)
SQLITE_STATUS_PARSER_STACK This parameter records the deepest parser stack. It is only meaningful if SQLite is compiled with YYTRACKMAXSTACKDEPTH. (source c3ref/c_status_malloc_count.html)
The name of a result column is the value of the "AS" clause for that column, if there is an AS clause. (source c3ref/column_name.html)
The sqlite3_wal_hook() function is used to register a callback that will be invoked each time a database connection commits data to a write-ahead log (i. (source c3ref/wal_hook.html)
When one of the first three forms is called during trigger-program execution, the specified ON CONFLICT processing is performed (either ABORT, FAIL or ROLLBACK) and the current query terminates. (source lang_createtrigger.html)
However, SQLite will nest the loops in a different order if doing so will help it to select better indices. (source optoverview.html)
PRAGMA incremental_vacuum(N); The incremental_vacuum pragma causes up to N pages to be removed from the freelist. (source pragma.html, checked-by: th3/req1/pragma21.test)
If an error occurs within sqlite3_backup_init(D,N,S,M), then NULL is returned and an error code and error message are stored in the destination database connection D. (source c3ref/backup_finish.html, checked-by: th3/req1/backup02.test)
This option takes a single argument which is a pointer to an instance of the sqlite3_mem_methods structure. The argument specifies alternative low-level memory allocation routines to be used in place of the memory allocation routines built into SQLite. (source c3ref/c_config_getmalloc.html)
If a WHEN clause is supplied, the SQL statements specified are only executed for rows for which the WHEN clause is true. (source lang_createtrigger.html, checked-by: slt/slt_lang_createtrigger.test)
The third parameter (nArg) is the number of arguments that the SQL function or aggregate takes. (source c3ref/create_function.html, checked-by: th3/req1/createfunc02.test)
The SQLITE_BUSY error is converted to SQLITE_IOERR_BLOCKED when SQLite is in the middle of a large transaction where all the changes will not fit into the in-memory cache. (source c3ref/busy_handler.html)
As long a connection is using a shared-memory wal-index, the locking mode can be changed freely between NORMAL and EXCLUSIVE. (source wal.html, checked-by: th3/req1/pragma05.test)
However, if there are any view definitions, or statements executed by triggers that refer to the table being renamed, these are not automatically modified to use the new table name. (source lang_altertable.html, checked-by: th3/req1/altertable01.test)
Table names that begin with "sqlite_" are reserved for internal use. It is an error to attempt to create a table with a name that starts with "sqlite_". (source lang_createtable.html, checked-by: tcl/e_createtable.test)
sqlite> EXPLAIN QUERY PLAN SELECT count(*) FROM (SELECT max(b) AS x FROM t1 GROUP BY a) GROUP BY x; 1|0|0|SCAN TABLE t1 USING COVERING INDEX i2 (~1000000 rows) 0|0|0|SCAN SUBQUERY 1 (~1000000 rows) 0|0|0|USE TEMP B-TREE FOR GROUP BY (source eqp.html, checked-by: tcl/eqp.test)
The statistics gathered by this scan are stored in special database tables names shows names all begin with "sqlite_stat". (source optoverview.html)
The fifth parameter is an arbitrary pointer. The implementation of the function can gain access to this pointer using sqlite3_user_data(). (source c3ref/create_function.html, checked-by: th3/req1/userdata01.test)
The psow query parameter works with the default windows and unix VFSes but might be a no-op for other proprietary or non-standard VFSes. (source uri.html)
If there is more than one PRIMARY KEY clause in a single CREATE TABLE statement, it is an error. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
numeric arguments in parentheses that following the type name (ex: "VARCHAR(255)") are ignored (source datatype3.html, checked-by: th3/req1/datatype3_02.test)
PRAGMA foreign_keys; PRAGMA foreign_keys = boolean; Query, set, or clear the enforcement of foreign key constraints. (source pragma.html, checked-by: th3/req1/pragma18.test)
SQLITE_STATUS_MALLOC_SIZE This parameter records the largest memory allocation request handed to sqlite3_malloc() or sqlite3_realloc() (or their internal equivalents). Only the value returned in the *pHighwater parameter to sqlite3_status() is of interest. The value written into the *pCurrent parameter is undefined. (source c3ref/c_status_malloc_count.html)
If an error occurs and pzErrMsg is not 0, then the sqlite3_load_extension() interface shall attempt to fill *pzErrMsg with error message text stored in memory obtained from sqlite3_malloc(). (source c3ref/load_extension.html)
In other words, the values to the right of the IN operator (the "x", "y", and "z" values in this example) are considered to have no affinity, even if they happen to be column values or CAST expressions. (source datatype3.html, checked-by: th3/req1/datatype3_05.test)
The TEMP or TEMPORARY keyword is removed if it occurs after the initial CREATE keyword. (source fileformat2.html)
NULL values (serial type 0) sort first. (source fileformat2.html)
The ROLLBACK TO command reverts the state of the database back to what it was just after the corresponding SAVEPOINT. (source lang_savepoint.html)
If the progress callback returns non-zero, the operation is interrupted. (source c3ref/progress_handler.html, checked-by: th3/req1/progress01.test)
The sqlite3_data_count(P) routine also returns 0 if P is a NULL pointer. (source c3ref/data_count.html, checked-by: th3/req1/datacnt01.test)
When the auto-vacuum mode is 1 or "full", the freelist pages are moved to the end of the database file and the database file is truncated to remove the freelist pages at every transaction commit. (source pragma.html, checked-by: th3/req1/pragma07.test)
sqlite> EXPLAIN QUERY PLAN SELECT * FROM (SELECT * FROM t2 WHERE c=1), t1; 0|0|0|SEARCH TABLE t2 USING INDEX i4 (c=?) (~10 rows) 0|1|1|SCAN TABLE t1 (~1000000 rows) (source eqp.html, checked-by: tcl/eqp.test)
The 4th argument to sqlite3_exec() is relayed through to the 1st argument of each callback invocation. (source c3ref/exec.html, checked-by: th3/req1/exec01.test)
If the LIMIT expression evaluates to non-negative value N and the UPDATE statement has an ORDER BY clause, then all rows that would be updated in the absence of the LIMIT clause are sorted according to the ORDER BY and the first N updated. (source lang_update.html, checked-by: tcl/e_update.test)
The third parameter passed to the logger is log message after formatting via sqlite3_snprintf(). (source c3ref/c_config_getmalloc.html)
The in-header database size is only considered to be valid if it is non-zero and if the 4-byte change counter at offset 24 exactly matches the 4-byte version-valid-for number at offset 92. (source fileformat2.html)
A successful call to sqlite3_backup_init() returns a pointer to an sqlite3_backup object. (source c3ref/backup_finish.html, checked-by: th3/req1/backup02.test)
When no rows match an aggregate query, the xStep() callback of the aggregate function implementation is never called and xFinal() is called exactly once. In those cases, sqlite3_aggregate_context() might be called for the first time from within xFinal(). (source c3ref/aggregate_context.html, checked-by: th3/req1/aggcntx01.test)
If the table being renamed has triggers or indices, then these remain attached to the table after it has been renamed. (source lang_altertable.html, checked-by: th3/req1/altertable01.test)
If neither ASC or DESC are specified, rows are sorted in ascending (smaller values first) order by default. (source lang_select.html, checked-by: tcl/e_select.test)
The ROLLBACK command without a TO clause rolls backs all transactions and leaves the transaction stack empty. (source lang_savepoint.html)
If the third parameter to sqlite3_result_error() or sqlite3_result_error16() is negative then SQLite takes as the error message all text up through the first zero character. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
SQLITE_RANGE is returned if the parameter index is out of range. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
Each time a row is inserted into the table by an INSERT statement that does not provide explicit values for all table columns the values stored in the new row are determined by their default values (source lang_createtable.html, checked-by: tcl/e_createtable.test)
A SAVEPOINT can be started either within or outside of a BEGIN...COMMIT. (source lang_savepoint.html)
With synchronous OFF (0), SQLite continues without syncing as soon as it has handed data off to the operating system. (source pragma.html)
If it is set to "DESC", then FTS4 stores its data in such a way as to optimize returning results in descending order by docid. (source fts3.html)
A column with REAL affinity behaves like a column with NUMERIC affinity except that it forces integer values into floating point representation. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
If the "TEMP" or "TEMPORARY" keyword occurs between the "CREATE" and "TABLE" then the new table is created in the temp database. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The fourth parameter is the number of pages currently in the write-ahead log file, including those that were just committed. (source c3ref/wal_hook.html)
Each column of the new row is populated with its default value, or with a NULL if no default value is specified as part of the column definition in the CREATE TABLE statement. (source lang_insert.html, checked-by: tcl/e_insert.test)
Hence, a cache created with bPurgeable false will never contain any unpinned pages. (source c3ref/pcache_methods2.html)
This function causes any pending database operation to abort and return at its earliest opportunity. (source c3ref/interrupt.html)
The ROWID chosen for the new row is at least one larger than the largest ROWID that has ever before existed in that same table. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
The OFF journaling mode disables the rollback journal completely. (source pragma.html)
The SAVEPOINT with the matching name remains on the transaction stack, but all database changes that occurred after that SAVEPOINT was created are rolled back. (source lang_savepoint.html)
SQLITE_STATUS_SCRATCH_OVERFLOW This parameter returns the number of bytes of scratch memory allocation which could not be satisfied by the SQLITE_CONFIG_SCRATCH buffer and where forced to overflow to sqlite3_malloc(). The values returned include overflows because the requested allocation was too larger (that is, because the requested allocation was larger than the "sz" parameter to SQLITE_CONFIG_SCRATCH) and because no scratch buffer slots were available. (source c3ref/c_status_malloc_count.html)
On windows, the first component of an absolute path is a drive specification (e. (source c3ref/open.html)
These routines are used to register a new virtual table module name. (source c3ref/create_module.html)
Different constraints within the same table may have different default conflict resolution algorithms. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
If sqlite3_unlock_notify() is called with a NULL pointer as its second argument, then any existing unlock-notify callback is canceled. (source c3ref/unlock_notify.html)
The sqlite3_bind_zeroblob() routine binds a BLOB of length N that is filled with zeroes. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
Otherwise, no affinity is applied and both operands are compared as is. (source datatype3.html, checked-by: th3/req1/datatype3_05.test)
The sqlite3_result_value() interface makes a copy of the sqlite3_value so that the sqlite3_value specified in the parameter may change or be deallocated after sqlite3_result_value() returns without harm. (source c3ref/result_blob.html, checked-by: th3/req1/result03.test)
If this in-header datasize size is not valid (see the next paragraph), then the database size is computed by looking at the actual size of the database file. (source fileformat2.html)
The DELETE journaling mode is the normal behavior. (source pragma.html, checked-by: th3/req1/pragma23.test)
Each group of input dataset rows contributes a single row to the set of result rows. (source lang_select.html, checked-by: tcl/e_select.test)
When an applicable constraint violation occurs, the ABORT resolution algorithm aborts the current SQL statement with an SQLITE_CONSTRAIT error and backs out any changes made by the current SQL statement; but changes caused by prior SQL statements within the same transaction are preserved and the transaction remains active. (source lang_conflict.html, checked-by: th3/req1/conflict01.test)
The last bullet above is illustrated by the following: CREATE TABLE parent2(a, b, PRIMARY KEY(a,b)); CREATE TABLE child8(x, y, FOREIGN KEY(x,y) REFERENCES parent2); -- Ok CREATE TABLE child9(x REFERENCES parent2); -- Error! CREATE TABLE child10(x,y,z, FOREIGN KEY(x,y,z) REFERENCES parent2); -- Error! (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys07.test)
For a string value X, the length(X) function returns the number of characters (not bytes) in X prior to the first NUL character. (source lang_corefunc.html, checked-by: th3/cov1/func01.test)
When the argument X to sqlite_compileoption_used(X) is a string which is the name of a compile-time option, this routine returns true (1) or false (0) depending on whether or not that option was used during the build. (source lang_corefunc.html, checked-by: th3/cov1/ctime02.test)
The destructor will also be invoked if the call to sqlite3_create_module_v2() fails. (source c3ref/create_module.html)
time(timestring, modifier, modifier, ...) (source lang_datefunc.html, checked-by: th3/req1/date01.test)
The sqlite3_memory_highwater() routine returns the maximum value of sqlite3_memory_used() since the high-water mark was last reset. (source c3ref/memory_highwater.html)
It can be applied to strings, numbers, blobs or NULL and it always returns a result with the same value as the operand. (source lang_expr.html, checked-by: tcl/e_expr.test)
If the UPDATE statement has no ORDER BY clause, then all rows that would be updated in the absence of the LIMIT clause are assembled in an arbitrary order before applying the LIMIT and OFFSET clauses to determine which are actually updated. (source lang_update.html, checked-by: tcl/e_update.test)
If you use the keyword CROSS in a join, then the two tables connected by that join will not be reordered. (source optoverview.html)
Instead of a separate OFFSET clause, the LIMIT clause may specify two scalar expressions separated by a comma. (source lang_select.html, checked-by: tcl/e_select.test)
If sqlite3_open_v2() is used and the "cache" parameter is present in a URI filename, its value overrides any behaviour requested by setting SQLITE_OPEN_PRIVATECACHE or SQLITE_OPEN_SHAREDCACHE flag. (source c3ref/open.html, checked-by: tcl/e_uri.test)
If there is no match, a NULL pointer is returned. (source c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test)
Total() never throws an integer overflow. (source lang_aggfunc.html, checked-by: th3/req1/aggfunc01.test)
The INDEXED BY and NOT INDEXED clauses are not allowed on UPDATE statements within triggers. (source lang_update.html, checked-by: tcl/e_update.test)
The first argument to the busy handler is a copy of the void* pointer which is the third argument to sqlite3_busy_handler(). (source c3ref/busy_handler.html)
SQLite holds a write transaction open on the destination database file for the duration of the backup operation. (source c3ref/backup_finish.html, checked-by: th3/req1/backup01.test)
This option takes three additional arguments that determine the lookaside memory allocator configuration for the database connection. (source c3ref/c_dbconfig_enable_fkey.html, checked-by: th3/req1/dbconfig01.test)
The result of sum() is an integer value if all non-NULL inputs are integers. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
The BEGIN command only works if the transaction stack is empty, or in other words if there are no pending transactions. (source lang_savepoint.html)
If executing the SELECT would return no rows at all, then the EXISTS operator evaluates to 0. (source lang_expr.html, checked-by: tcl/e_expr.test)
PRAGMA index_list(table-name); This pragma returns one row for each index associated with the given table. (source pragma.html, checked-by: th3/req1/pragma15.test)
If logging is enabled, the zFormat string and subsequent arguments are used with sqlite3_snprintf() to generate the final output string. (source c3ref/log.html, checked-by: th3/cov1/log01.test)
The current value of the parameter is returned into *pCurrent. (source c3ref/status.html)
This pragma is a wrapper around the sqlite3_wal_autocheckpoint() C interface. (source pragma.html)
If an action is not explicitly specified, it defaults to "NO ACTION". (source foreignkeys.html, checked-by: src/parse.y, tcl/e_fkey.test, th3/req1/foreignkeys16.test)
The xDestroy() method is used to delete a cache allocated by xCreate(). (source c3ref/pcache_methods2.html, checked-by: th3/mkth3.tcl)
If one operand is NULL and the other is not, then the IS operator evaluates to 0 (false) and the IS NOT operator is 1 (true). (source lang_expr.html, checked-by: tcl/e_expr.test)
If both virtual terms end up being used as constraints on an index, then the original BETWEEN term is omitted and the corresponding test is not performed on input rows. (source optoverview.html)
However, newer versions of SQLite still avoid using the last six entries in the freelist trunk page array in order that database files created by newer versions of SQLite can be read by older versions of SQLite. (source fileformat2.html)
Closing a BLOB shall cause the current transaction to commit if there are no other BLOBs, no pending prepared statements, and the database connection is in autocommit mode. (source c3ref/blob_close.html)
The first column of an SQLite R*Tree must always be an integer primary key. (source rtree.html)
Configuring "NO ACTION" means just that: when a parent key is modified or deleted from the database, no special action is taken. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys16.test)
If pStmt is NULL then this interface returns a pointer to the first prepared statement associated with the database connection pDb. (source c3ref/next_stmt.html, checked-by: th3/cov1/vdbeapi04.test)
the following declaration does not result in "x" being an alias for the rowid: CREATE TABLE t(x INTEGER PRIMARY KEY DESC, y, z); (source lang_createtable.html, checked-by: tcl/e_createtable.test)
If the WHERE clause is not present, all records in the table are deleted. (source lang_delete.html, checked-by: tcl/e_delete.test)
Unregister a VFS with the sqlite3_vfs_unregister() interface. (source c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test)
No rollback journal is ever created and hence there is never a rollback journal to delete. (source pragma.html, checked-by: th3/req1/pragma25.test)
The first form (with the "VALUES" keyword) creates a single new row in an existing table. (source lang_insert.html, checked-by: tcl/e_insert.test)
Format 4 causes SQLite to respect the DESC keyword on index declarations. (source fileformat2.html)
If the source database is modified during a backup operation, then the values are not updated to account for any extra pages that need to be updated or the size of the source database file changing. (source c3ref/backup_finish.html)
The avg() function returns the average value of all non-NULL X within a group. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
The first four bytes of each overflow page are a big-endian integer which is the page number of the next page in the chain, or zero for the final page in the chain. (source fileformat2.html)
When an SQL table that includes an INTEGER PRIMARY KEY column (which aliases the rowid) then that column appears in the record as a NULL value. (source fileformat2.html)
If no WHEN clause is supplied, the SQL statements are executed for all rows. (source lang_createtrigger.html, checked-by: slt/slt_lang_createtrigger.test)
The "utc" is the opposite of "localtime". "utc" assumes that the string to its left is in the local timezone and adjusts that string to be in UTC. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
If an expression has an OFFSET clause, then the first M rows are omitted from the result set returned by the SELECT statement and the next N rows are returned, where M and N are the values that the OFFSET and LIMIT clauses evaluate to, respectively. (source lang_select.html, checked-by: tcl/e_select.test)
Normally, the database page_size and whether or not the database supports auto_vacuum must be configured before the database file is actually created. (source lang_vacuum.html, checked-by: tcl/e_vacuum.test)
A value of 13 means the page is a leaf table b-tree page. (source fileformat2.html)
If SQLite is compiled with the SQLITE_THREADSAFE=0 compile-time option then it is not possible to set the Multi-thread threading mode and sqlite3_config() will return SQLITE_ERROR if called with the SQLITE_CONFIG_MULTITHREAD configuration option. (source c3ref/c_config_getmalloc.html)
The sqlite3_strnicmp() API allows applications and extensions to compare the contents of two buffers containing UTF-8 strings in a case-independent fashion, using the same definition of case independence that SQLite uses internally when comparing identifiers. (source c3ref/strnicmp.html, checked-by: src/util.c)
A single record is output for the parent (compound query) identifying the operation, and whether or not a temporary b-tree is used to implement it. (source eqp.html, checked-by: th3/req1/eqp01.test)
The UNION operator works the same way as UNION ALL, except that duplicate rows are removed from the final result set. (source lang_select.html, checked-by: tcl/e_select.test)
The rollback journal file is always located in the same directory as the database file and has the same name as the database file but with the string "-journal" appended. (source fileformat2.html)
A simple SELECT statement is an aggregate query if it contains either a GROUP BY clause or one or more aggregate functions in the result-set. (source lang_select.html, checked-by: tcl/e_select.test)
The sqlite3_data_count(P) interface returns the number of columns in the current row of the result set of prepared statement P. (source c3ref/data_count.html, checked-by: th3/mkth3.tcl, th3/req1/datacnt01.test)
In other words, if the left-hand dataset consists of Nlhs rows of Mlhs columns, and the right-hand dataset of Nrhs rows of Mrhs columns, then the cartesian product is a dataset of Nlhs.Nrhs rows, each containing Mlhs+Mrhs columns. (source lang_select.html, checked-by: tcl/e_select.test)
The result of any binary operator is either a numeric value or NULL, except for the || concatenation operator which always evaluates to either NULL or a text value. (source lang_expr.html, checked-by: tcl/e_expr.test)
The second field of the b-tree page header is the offset of the first freeblock, or zero if there are no freeblocks on the page. (source fileformat2.html)
The sqlite3_stmt_busy(S) interface returns true (non-zero) if the prepared statement S has been stepped at least once using sqlite3_step(S) but has not run to completion and/or has not been reset using sqlite3_reset(S). (source c3ref/stmt_busy.html, checked-by: th3/cov1/vdbeapi03.test)
The
Metadata is returned by writing to the memory locations passed as the 5th and subsequent parameters to this function. (source c3ref/table_column_metadata.html)
The sqlite3_threadsafe() function returns zero if and only if SQLite was compiled with mutexing code omitted due to the SQLITE_THREADSAFE compile-time option being set to 0. (source c3ref/threadsafe.html, checked-by: src/main.c)
The sqlite3_int64 and sqlite_int64 types can store integer values between -9223372036854775808 and +9223372036854775807 inclusive. (source c3ref/int64.html, checked-by: th3/req1/int64_01.test)
The second form of the pragma listed above is used to set a new limit in bytes for the specified database. (source pragma.html, checked-by: th3/req1/pragma26.test)
The default file format is set by the SQLITE_DEFAULT_FILE_FORMAT compile-time option. (source pragma.html, checked-by: th3/req1/pragma22.test)
An attempt to write to an expired BLOB handle fails with an error code of SQLITE_ABORT. (source c3ref/blob_write.html)
Some systems (for example, Windows 95) do not support the operation implemented by sqlite3_mutex_try(). On those systems, sqlite3_mutex_try() will always return SQLITE_BUSY. The SQLite core only ever uses sqlite3_mutex_try() as an optimization so this is acceptable behavior. (source c3ref/mutex_alloc.html, checked-by: th3/mkth3.tcl)
If sqlite3_config() is called after sqlite3_initialize() and before sqlite3_shutdown() then it will return SQLITE_MISUSE. (source c3ref/config.html)
The rowid is always available as an undeclared column named ROWID, OID, or _ROWID_ as long as those names are not also used by explicitly declared columns. (source c3ref/last_insert_rowid.html)
sqlite> EXPLAIN QUERY PLAN SELECT t1.*, t2.* FROM t2, t1 WHERE t1.a=1 AND t1.b>2; 0|0|1|SEARCH TABLE t1 USING COVERING INDEX i2 (a=? AND b>?) (~3 rows) 0|1|0|SCAN TABLE t2 (~1000000 rows) (source eqp.html, checked-by: tcl/eqp.test)
This option takes a single argument which is a pointer to an sqlite3_pcache_methods2 object. This object specifies the interface to a custom page cache implementation. (source c3ref/c_config_getmalloc.html)
For the example above, one might create an auxiliary table as follows: CREATE TABLE demo_data( id INTEGER PRIMARY KEY, -- primary key objname TEXT, -- name of the object objtype TEXT, -- object type boundary BLOB -- detailed boundary of object ); (source rtree.html)
The INDEXED BY phrase is an SQL extension found only in SQLite which can be used to verify that the correct indices are being used on a DELETE, SELECT, or UPDATE statement. (source lang_indexedby.html)
The "INSERT INTO table DEFAULT VALUES" form of the INSERT statement is not supported. (source lang_createtrigger.html)
The replace(X,Y,Z) function returns a string formed by substituting string Z for every occurrence of string Y in string X. (source lang_corefunc.html, checked-by: th3/req1/func03.test)
If M is greater than zero then after M page records the journal file may be zero padded out to the next multiple of the sector size and another journal header may be inserted. (source fileformat2.html)
The time string can be followed by zero or more modifiers that alter date and/or time. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
Example Typenames From TheCREATE TABLE Statement or CAST Expression Resulting Affinity Rule Used To Determine Affinity INT INTEGER TINYINT SMALLINT MEDIUMINT BIGINT UNSIGNED BIG INT INT2 INT8 INTEGER 1 CHARACTER(20) VARCHAR(255) VARYING CHARACTER(255) NCHAR(55) NATIVE CHARACTER(70) NVARCHAR(100) TEXT CLOB TEXT 2 BLOB no datatype specified NONE 3 REAL DOUBLE DOUBLE PRECISION FLOAT REAL 4 NUMERIC DECIMAL(10,5) BOOLEAN DATE DATETIME NUMERIC 5 (source datatype3.html, checked-by: th3/req1/datatype3_02.test)
The sqlite3_interrupt(D) call is in effect until all currently running SQL statements on database connection D complete. (source c3ref/interrupt.html)
As with PRIMARY KEY constraints, for the purposes of UNIQUE constraints NULL values are considered distinct from all other values (including other NULLs). (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The DESC keyword is ignored in indices for formats 1, 2, and 3. (source fileformat2.html)
SQLITE_LIMIT_VDBE_OP The maximum number of instructions in a virtual machine program used to implement an SQL statement. This limit is not currently enforced, though that might be added in some future release of SQLite. (source c3ref/c_limit_attached.html, checked-by: th3/req1/limit02.test)
The path component of the URI specifies the disk file that is the SQLite database to be opened. (source uri.html)
If Y is omitted then the default entry point of sqlite3_extension_init is used. (source lang_corefunc.html, checked-by: th3/cov1/func03.test)
The third argument (eTextRep) must be one of the constants: SQLITE_UTF8, SQLITE_UTF16LE, SQLITE_UTF16BE, SQLITE_UTF16, or SQLITE_UTF16_ALIGNED. (source c3ref/create_collation.html, checked-by: th3/req1/createcoll01.test)
If, however, all columns that were to be fetched from the table are already available in the index itself, SQLite will use the values contained in the index and will never look up the original table row. (source optoverview.html)
No storage class conversions occur before the sort. (source datatype3.html, checked-by: th3/req1/datatype3_04.test)
In SQLite, a foreign key constraint is permanently marked as deferred or immediate when it is created. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys23.test)
The sqlite3_mutex_notheld() interface should also return 1 when given a NULL pointer. (source c3ref/mutex_held.html)
For example, if an application defines a function "eval()" that calls sqlite3_exec(), then the following SQL statement would change the database file through side-effects: SELECT eval('DELETE FROM t1') FROM t2; But because the SELECT statement does not change the database file directly, sqlite3_stmt_readonly() would still return true. (source c3ref/stmt_readonly.html, checked-by: th3/cov1/vdbeapi14.test)
The sqlite3_initialize() routine returns SQLITE_OK on success. (source c3ref/initialize.html)
The vfs query parameter causes the database connection to be opened using the VFS called NAME. (source uri.html)
When casting a BLOB value to INTEGER, the value is first converted to TEXT. (source lang_expr.html, checked-by: tcl/e_expr.test)
Within the body of a trigger, the sqlite3_changes() interface can be called to find the number of changes in the most recently completed INSERT, UPDATE, or DELETE statement within the body of the same trigger. However, the number returned does not include changes caused by subtriggers since those have their own context. (source c3ref/changes.html)
The ANALYZE command gathers statistics about tables and indices and stores the collected information in a special tables in the database where the query optimizer can use them to help make better query planning choices. (source lang_analyze.html, checked-by: th3/req1/analyze01.test)
A column with TEXT affinity stores all data using storage classes NULL, TEXT or BLOB. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
The first column of the result is the rank of the column within the index. (source pragma.html, checked-by: th3/req1/pragma15.test)
The memory pointed to by the character pointers returned for the declaration type and collation sequence is valid only until the next call to any SQLite API function. (source c3ref/table_column_metadata.html)
Transactions can be deferred, immediate, or exclusive. (source lang_transaction.html)
The particular operator is stored in aConstraint[].op using one of the SQLITE_INDEX_CONSTRAINT_ values. (source c3ref/index_info.html)
Casting an INTEGER or REAL value into TEXT renders the value as if via sqlite3_snprintf() except that the resulting TEXT uses the encoding of the database connection. (source lang_expr.html, checked-by: tcl/e_expr.test)
sqlite> EXPLAIN QUERY PLAN SELECT t1.*, t2.* FROM t1, t2 WHERE t1.a=1 AND t1.b>2; 0|0|0|SEARCH TABLE t1 USING COVERING INDEX i2 (a=? AND b>?) (~3 rows) 0|1|1|SCAN TABLE t2 (~1000000 rows) (source eqp.html, checked-by: tcl/eqp.test)
The default value for integer is 100. (source pragma.html)
Tables are removed using the DROP TABLE statement. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The profile callback contains the original statement text and an estimate of wall-clock time of how long that statement took to run. (source c3ref/profile.html)
When a configuration option is set, sqlite3_config() returns SQLITE_OK. (source c3ref/config.html)
Note that if one of the dynamic mutex parameters (SQLITE_MUTEX_FAST or SQLITE_MUTEX_RECURSIVE) is used then sqlite3_mutex_alloc() returns a different mutex on every call. (source c3ref/mutex_alloc.html, checked-by: th3/cov1/mutex01.test)
BINARY Strings are compared byte by byte using the memcmp() function from the standard C library. (source fileformat2.html)
Leading spaces are removed. (source fileformat2.html)
The FTS4 prefix option causes FTS to index term prefixes of specified lengths in the same way that it always indexes complete terms. (source fts3.html)
SQLITE_STATUS_PAGECACHE_SIZE This parameter records the largest memory allocation request handed to pagecache memory allocator. Only the value returned in the *pHighwater parameter to sqlite3_status() is of interest. The value written into the *pCurrent parameter is undefined. (source c3ref/c_status_malloc_count.html)
The following two queries are not equivalent: SELECT * FROM tab1 LEFT JOIN tab2 ON tab1.x=tab2.y; SELECT * FROM tab1 LEFT JOIN tab2 WHERE tab1.x=tab2.y; (source optoverview.html)
The header begins with a single varint which determines the total number of bytes in the header. The varint value is the size of the header in bytes including the size varint itself. (source fileformat2.html)
The PRAGMA foreign_keys command is a no-op in this configuration. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys05.test)
If the 4th parameter to the sqlite3_result_text* interfaces or sqlite3_result_blob is the special constant SQLITE_TRANSIENT then SQLite makes a copy of the result into space obtained from from sqlite3_malloc() before it returns. (source c3ref/result_blob.html, checked-by: th3/req1/result02.test)
The coalesce() function returns a copy of its first non-NULL argument, or NULL if all arguments are NULL. (source lang_corefunc.html, checked-by: th3/cov1/func01.test)
If there is no prefix that can be interpreted as a real number, the result of the conversion is 0.0. (source lang_expr.html, checked-by: tcl/e_expr.test)
The orderByConsumed means that output from xFilter/xNext will occur in the correct order to satisfy the ORDER BY clause so that no separate sorting step is required. (source c3ref/index_info.html)
If argvIndex>0 then the right-hand side of the corresponding aConstraint[] is evaluated and becomes the argvIndex-th entry in argv. (source c3ref/index_info.html)
The third and fourth bytes of each freeblock form a big-endian integer which is the size of the freeblock in bytes, including the 4-byte header. (source fileformat2.html)
if there is only a single global wildcard to the right of x, then the original LIKE or GLOB test is disabled. (source optoverview.html)
If there is an ON clause specified, then the ON expression is evaluated for each row of the cartesian product as a boolean expression. All rows for which the expression evaluates to false are excluded from the dataset. (source lang_select.html, checked-by: tcl/e_select.test, tcl/e_select2.test)
Names are zero-terminated UTF-8 strings. (source c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test)
If X is a BLOB then the indices refer to bytes. (source lang_corefunc.html, checked-by: th3/cov1/func02.test)
This function may only modify the contents of the BLOB; it is not possible to increase the size of a BLOB using this API. (source c3ref/blob_write.html)
The LIKE operator can be made case sensitive using the case_sensitive_like pragma. (source lang_expr.html, checked-by: tcl/e_expr.test)
ORDER BY and LIMIT clauses may only occur at the end of the entire compound SELECT. (source lang_select.html, checked-by: tcl/e_select.test)
Comments are treated as whitespace by the parser. (source lang_comment.html, checked-by: src/tokenize.c)
Casting to a BLOB consists of first casting the value to TEXT in the encoding of the database connection, then interpreting the resulting byte sequence as a BLOB instead of as TEXT. (source lang_expr.html, checked-by: tcl/e_expr.test)
But if an application-defined collating sequence and/or like() SQL function are provided, the LIKE optimization described here will never be taken. (source optoverview.html)
12 4 A random nonce for the checksum (source fileformat2.html)
When case_sensitive_like is enabled, case becomes significant. So, for example, 'a' LIKE 'A' is false but 'a' LIKE 'a' is still true. (source pragma.html, checked-by: th3/req1/pragma10.test)
The maximum page count cannot be reduced below the current database size. (source pragma.html, checked-by: th3/req1/pragma12.test)
Setting it to "shared" is equivalent to setting the SQLITE_OPEN_SHAREDCACHE bit in the flags argument passed to sqlite3_open_v2(). (source c3ref/open.html, checked-by: tcl/e_uri.test)
The size of the blob (and hence the maximum value of N+iOffset) can be determined using the sqlite3_blob_bytes() interface. (source c3ref/blob_read.html, checked-by: th3/cov1/vdbeblob01.test)
If a database connection is operating in exclusive locking mode or in persistent journal mode (PRAGMA journal_mode=persist) then after committing a transaction the rollback journal file may remain in the file-system. (source pragma.html, checked-by: th3/req1/pragma26.test)
This modifier causes the DDDDDDDDDD to be interpreted not as a Julian day number as it normally would be, but as Unix Time - the number of seconds since 1970. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
the parser allows the use of the single keyword REPLACE as an alias for "INSERT OR REPLACE". (source lang_insert.html, checked-by: tcl/e_insert.test)
After an application receives an SQLITE_LOCKED error, it may call the sqlite3_unlock_notify() method with the blocked connection handle as the first argument to register for a callback that will be invoked when the blocking connections current transaction is concluded. (source c3ref/unlock_notify.html)
The implementation is not required to provide versions of these routines that actually work. (source c3ref/mutex_held.html)
A column whose declared type is "CHARINT" will match both rules 1 and 2 but the first rule takes precedence and so the column affinity will be INTEGER. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
Otherwise, if a simple SELECT contains no aggregate functions or a GROUP BY clause, it is a non-aggregate query. (source lang_select.html, checked-by: tcl/e_select.test)
This function returns the number of database rows that were changed or inserted or deleted by the most recently completed SQL statement on the database connection specified by the first parameter. (source c3ref/changes.html)
The cache parameter may be set to either "shared" or "private". (source c3ref/open.html, checked-by: tcl/e_uri.test)
If the OFFSET clause evaluates to a negative value, the results are the same as if it had evaluated to zero. (source lang_select.html, checked-by: tcl/e_select.test)
The sqlite3_value_numeric_type() interface attempts to apply numeric affinity to the value. This means that an attempt is made to convert the value to an integer or floating point. If such a conversion is possible without loss of information (in other words, if the value is a string that looks like a number) then the conversion is performed. Otherwise no conversion occurs. The datatype after conversion is returned. (source c3ref/value_blob.html, checked-by: th3/req1/value02.test, th3/req1/value03.test)
If this SELECT returns any rows at all, then SQLite concludes that deleting the row from the parent table would violate the foreign key constraint and returns an error. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys10.test)
The following implementations are available in the SQLite core: SQLITE_MUTEX_OS2 SQLITE_MUTEX_PTHREADS SQLITE_MUTEX_W32 SQLITE_MUTEX_NOOP (source c3ref/mutex_alloc.html)
The rtrim(X,Y) function returns a string formed by removing any and all characters that appear in Y from the right side of X. (source lang_corefunc.html, checked-by: th3/req1/func03.test)
The string "UTF-16" is interpreted as "UTF-16 encoding using native machine byte-ordering". (source pragma.html, checked-by: th3/req1/pragma16.test)
The sqlite3_stmt_readonly(X) interface returns true (non-zero) if and only if the prepared statement X makes no direct changes to the content of the database file. (source c3ref/stmt_readonly.html, checked-by: th3/cov1/vdbeapi14.test)
The new column is always appended to the end of the list of existing columns. (source lang_altertable.html, checked-by: th3/req1/altertable01.test)
The second is a copy of the database handle. (source c3ref/wal_hook.html)
The COLLATE operator has a higher precedence (binds more tightly) than any prefix unary operator or any binary operator. (source lang_expr.html, checked-by: tcl/e_expr.test)
This pragma causes the database connection on which it is invoked to free up as much memory as it can, by calling sqlite3_db_release_memory(). (source pragma.html)
If the optional database name is omitted, "main" is assumed. (source pragma.html, checked-by: th3/req1/pragma01.test)
Virtual tables can provide alternative implementations of functions using the xFindFunction method of the virtual table module. But global versions of those functions must exist in order to be overloaded. (source c3ref/overload_function.html)
Alternative collating functions for table columns can be specified in the CREATE TABLE statement using the COLLATE clause on the column definition. (source fileformat2.html)
The SQLITE_ prefix is omitted from any strings returned by sqlite3_compileoption_get(). (source c3ref/compileoption_get.html)
When the REPLACE conflict resolution strategy deletes rows in order to satisfy a constraint, delete triggers fire if and only if recursive triggers are enabled. (source lang_conflict.html, checked-by: th3/req1/conflict02.test)
The sqlite3_mprintf() and sqlite3_vmprintf() routines write their results into memory obtained from sqlite3_malloc(). (source c3ref/mprintf.html, checked-by: th3/req1/malloc01.test)
The 32-bit integers are big-endian if the magic number in the first 4 bytes of the WAL header is 0x377f0683 and the integers are little-endian the magic number is 0x377f0682. (source fileformat2.html)
If there is more than one table specified as part of the join-source following the FROM keyword, then the contents of each named table are joined into a single dataset for the simple SELECT statement to operate on. (source lang_select.html, checked-by: tcl/e_select.test)
For indices that are automatically created by UNIQUE or PRIMARY KEY constraints, the sqlite_master.sql field is NULL. (source fileformat2.html)
The rollback journal file can be truncated to zero length (source fileformat2.html)
SQLite only understands upper/lower case for ASCII characters by default. (source lang_expr.html, checked-by: tcl/e_expr.test)
The sqlite_master.name column will hold the name of the object. (source fileformat2.html)
By contrast, if foreign key errors can be recognized simply by looking at the definition of the child table and without having to consult the parent table definition, then the CREATE TABLE statement for the child table fails. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys08.test)
The path is optional if the authority is present. (source uri.html)
The destructor is also invoked if the call to sqlite3_create_function_v2() fails. (source c3ref/create_function.html, checked-by: th3/req1/createfunc07.test)
The cell pointer array of a b-tree page immediately follows the b-tree page header. (source fileformat2.html)
A literal value can also be the token "NULL". (source lang_expr.html, checked-by: tcl/e_expr.test)

(source lang_select.html, checked-by: tcl/e_select.test)
Each expression in the result-set is then evaluated once for each group of rows. (source lang_select.html, checked-by: tcl/e_select.test)
These routines work just like the corresponding column access functions except that these routines take a single protected sqlite3_value object pointer instead of a sqlite3_stmt* pointer and an integer column number. (source c3ref/value_blob.html, checked-by: th3/req1/value02.test, th3/req1/value03.test)
If a RELEASE command releases the outermost savepoint, so that the transaction stack becomes empty, then RELEASE is the same as COMMIT. (source lang_savepoint.html)
The abs(X) function returns the absolute value of the numeric argument X. (source lang_corefunc.html, checked-by: src/func.c, th3/cov1/func01.test)
This interface causes the xEntryPoint() function to be invoked for each new database connection that is created. (source c3ref/auto_extension.html, checked-by: th3/req1/autoext01.test)
There is one exception: if the foreign key column in the track table is NULL, then no corresponding entry in the artist table is required. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys01.test)
PRAGMA ignore_check_constraints = boolean; This pragma enables or disables the enforcement of CHECK constraints. (source pragma.html, checked-by: th3/req1/pragma20.test)
The SQLITE_MUTEX_NOOP implementation is a set of routines that does no real locking and is appropriate for use in a single-threaded application. (source c3ref/mutex_alloc.html)
C-style comments can span multiple lines. (source lang_comment.html, checked-by: th3/req1/comment01.test)
If a page contains no cells (which is only possible for a root page of a table that contains no rows) then the offset to the cell content area will equal the page size minus the bytes of reserved space. (source fileformat2.html)
URI filename interpretation is enabled if the SQLITE_OPEN_URI flag is set in the fourth argument to sqlite3_open_v2(), or if it has been enabled globally using the SQLITE_CONFIG_URI option with the sqlite3_config() method or by the SQLITE_USE_URI compile-time option. (source c3ref/open.html, checked-by: tcl/e_uri.test)
Tables created using CREATE TABLE AS are initially populated with the rows of data returned by the SELECT statement. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The 3rd argument to the sqlite3_exec() callback is an array of pointers to strings obtained as if from sqlite3_column_text(), one for each column. (source c3ref/exec.html, checked-by: th3/req1/exec01.test)
The length of the name is limited to 255 bytes in a UTF-8 representation, exclusive of the zero-terminator. (source c3ref/create_function.html, checked-by: th3/req1/createfunc01.test)
Even if the foreign key constraint it is attached to is deferred, configuring a RESTRICT action causes SQLite to return an error immediately if a parent key with dependent child keys is deleted or modified. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys16.test)
The expression attached to the optional OFFSET clause that may follow a LIMIT clause must also evaluate to an integer, or a value that can be losslessly converted to an integer. (source lang_select.html, checked-by: tcl/e_select.test)
If no errors are found, a single row with the value "ok" is returned. (source pragma.html)
Or, if none of the WHEN expressions evaluate to true, the result of evaluating the ELSE expression, if any. (source lang_expr.html, checked-by: tcl/e_expr.test)
These special identifiers all describe the unique integer key (the rowid) associated with every row of every table. (source lang_expr.html)
The SQLite core will never read or write the lock-byte page, though operating-system specific VFS implementations may choose to read or write bytes on the lock-byte page according to the needs and proclivities of the underlying system. (source fileformat2.html)

(source lang_createtable.html, checked-by: tcl/e_createtable.test)
as will attempting to delete a row from the artist table when there exist dependent rows in the track table (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys01.test)
An application can tell which course of action SQLite took by using the sqlite3_get_autocommit() C-language interface. (source lang_transaction.html)
The frame-header is six big-endian 32-bit unsigned integer values, as follows: WAL Frame Header Format OffsetSizeDescription 04 Page number 44 For commit records, the size of the database file in pages after the commit. For all other records, zero. 84 Salt-1 copied from the WAL header 124 Salt-2 copied from the WAL header 164 Checksum-1: Cumulative checksum up through and including this page 204 Checksum-2: Second half of the cumulative checksum. (source fileformat2.html)
In formats 5 through 7, the "T" is a literal character separating the date and the time, as required by ISO-8601. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
AUTOINCREMENT guarantees that automatically chosen ROWIDs will be increasing but not that they will be sequential. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
All foreign key constraints in SQLite are handled as if MATCH SIMPLE were specified. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys23.test)
The BINARY collating sequence is used for comparisons. (source lang_corefunc.html, checked-by: th3/req1/func03.test)
This function is an SQL wrapper around the sqlite3_sourceid() C interface. (source lang_corefunc.html, checked-by: src/func.c, th3/req1/func04.test)
The following example illustrates the effect of using a deferred foreign key constraint. -- Database schema. Both tables are initially empty. CREATE TABLE artist( artistid INTEGER PRIMARY KEY, artistname TEXT ); CREATE TABLE track( trackid INTEGER, trackname TEXT, trackartist INTEGER REFERENCES artist(artistid) DEFERRABLE INITIALLY DEFERRED ); sqlite3> -- If the foreign key constraint were immediate, this INSERT would sqlite3> -- cause an error (since as there is no row in table artist with sqlite3> -- artistid=5). But as the constraint is deferred and there is an sqlite3> -- open transaction, no error occurs. sqlite3> BEGIN; sqlite3> INSERT INTO track VALUES(1, 'White Christmas', 5); sqlite3> -- The following COMMIT fails, as the database is in a state that sqlite3> -- does not satisfy the deferred foreign key constraint. The sqlite3> -- transaction remains open. sqlite3> COMMIT; SQL error: foreign key constraint failed sqlite3> -- After inserting a row into the artist table with artistid=5, the sqlite3> -- deferred foreign key constraint is satisfied. It is then possible sqlite3> -- to commit the transaction without error. sqlite3> INSERT INTO artist VALUES(5, 'Bing Crosby'); sqlite3> COMMIT; (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys13.test)
A pointer to an sqlite3_context object is always first parameter to application-defined SQL functions. (source c3ref/context.html, checked-by: src/vdbe.c, src/vdbemem.c, th3/req1/aggcntx01.test, th3/req1/func02.test)
When the value of auto-vacuum is 2 or "incremental" then the additional information needed to do auto-vacuuming is stored in the database file but auto-vacuuming does not occur automatically at each commit as it does with auto_vacuum=full. (source pragma.html, checked-by: th3/req1/pragma07.test)
If pzTail is not NULL then *pzTail is made to point to the first byte past the end of the first SQL statement in zSql. (source c3ref/prepare.html, checked-by: th3/req1/prepare01.test)
If there are many OR terms in the WHERE clause or if some of the indices on individual OR-clause subterms are not very selective, then SQLite might decide that it is faster to use a different query algorithm, or even a full-table scan. (source optoverview.html)
No tests are done for terms that are completely satisfied by indices. (source optoverview.html, checked-by: src/where.c)
SQLite makes its own private copy of the content of the sqlite3_mem_methods structure before the sqlite3_config() call returns. (source c3ref/c_config_getmalloc.html)
Note that number of bytes stored on the leaf page is never less than M. (source fileformat2.html)
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE The database is opened for reading and writing, and is created if it does not already exist. This is the behavior that is always used for sqlite3_open() and sqlite3_open16(). (source c3ref/open.html)
For example, consider the following database schema: CREATE TABLE album( albumartist TEXT, albumname TEXT, albumcover BINARY, PRIMARY KEY(albumartist, albumname) ); CREATE TABLE song( songid INTEGER, songartist TEXT, songalbum TEXT, songname TEXT, FOREIGN KEY(songartist, songalbum) REFERENCES album(albumartist, albumname) ); In this system, each entry in the song table is required to map to an entry in the album table with the same combination of artist and album. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys11.test)
Memory to hold the error message string is managed internally. The application does not need to worry about freeing the result. However, the error string might be overwritten or deallocated by subsequent calls to other SQLite interface functions. (source c3ref/errcode.html)
SQLite parses MATCH clauses (i.e. does not report a syntax error if you specify one), but does not enforce them. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys23.test)
SQLite is careful to deallocate every dynamic mutex that it allocates. (source c3ref/mutex_alloc.html, checked-by: th3/mkth3.tcl)
The IS and IS NOT operators work like = and != except when one or both of the operands are NULL. (source lang_expr.html, checked-by: tcl/e_expr.test)
Otherwise, it is invoked with two arguments only. (source lang_corefunc.html, checked-by: th3/req1/func02.test)
The authority may be omitted, may be blank, or may be "localhost". Any other authority results in an error. (source uri.html)
But if the ANALYZE command is run in order to gather statistics, a different choice might be made if the statistics indicate that the alternative is likely to run faster. (source optoverview.html)
It is permitted to register multiple implementations of the same functions with the same name but with either differing numbers of arguments or differing preferred text encodings. (source c3ref/create_function.html, checked-by: th3/req1/createfunc04.test)
datetime(timestring, modifier, modifier, ...) (source lang_datefunc.html, checked-by: th3/req1/date01.test)
If prepared statement P does not have results ready to return (via calls to the sqlite3_column_*() of interfaces) then sqlite3_data_count(P) returns 0. (source c3ref/data_count.html, checked-by: th3/req1/datacnt01.test)
If sqlite3_collation_needed16() is used, the names are passed as UTF-16 in machine native byte order. (source c3ref/collation_needed.html)
The GLOB operator is always case sensitive. (source optoverview.html, checked-by: th3/cov1/pragma02.test)
The argument to sqlite3_mutex_alloc() is one of these integer constants: SQLITE_MUTEX_FAST SQLITE_MUTEX_RECURSIVE SQLITE_MUTEX_STATIC_MASTER SQLITE_MUTEX_STATIC_MEM SQLITE_MUTEX_STATIC_MEM2 SQLITE_MUTEX_STATIC_PRNG SQLITE_MUTEX_STATIC_LRU SQLITE_MUTEX_STATIC_LRU2 (source c3ref/mutex_alloc.html)
Thus with a deferred transaction, the BEGIN statement itself does nothing to the filesystem. (source lang_transaction.html)
Each sub-select is assigned a distinct, non-zero "selectid" value. (source eqp.html, checked-by: th3/req1/eqp01.test)
In practice, metadata is preserved between function calls for expressions that are constant at compile time. This includes literal values and parameters. (source c3ref/get_auxdata.html)
Any callback set by a previous call to sqlite3_rollback_hook() for the same database connection is overridden. (source c3ref/commit_hook.html)
The size of a page is a power of two between 512 and 65536 inclusive. (source fileformat2.html)
SQLite will never invoke xInit() more than once without an intervening call to xShutdown(). (source c3ref/pcache_methods2.html, checked-by: th3/mkth3.tcl)
If SQLite determines that invoking the busy handler could result in a deadlock, it will go ahead and return SQLITE_BUSY or SQLITE_IOERR_BLOCKED instead of invoking the busy handler. (source c3ref/busy_handler.html)
However, if there are pending write operations, the COMMIT command will fail with an error code SQLITE_BUSY. (source lang_transaction.html)
This option is used to enable or disable the enforcement of foreign key constraints. (source c3ref/c_dbconfig_enable_fkey.html)
The INSERT ... DEFAULT VALUES statement inserts a single new row into the named table. (source lang_insert.html, checked-by: tcl/e_insert.test)
PRAGMA foreign_key_list(table-name); This pragma returns one row for each foreign key that references a column in the argument table. (source pragma.html, checked-by: th3/req1/pragma17.test)
It is not necessary for every column of an index to appear in a WHERE clause term in order for that index to be used. (source optoverview.html)
This function is omitted from SQLite by default. It is only available if the SQLITE_SOUNDEX compile-time option is used when SQLite is built. (source lang_corefunc.html, checked-by: src/func.c, th3/cov1/func07.test)
There is nothing stopping the user from creating a foreign key definition that refers to a parent table that does not exist, or to parent key columns that do not exist or are not collectively bound by a PRIMARY KEY or UNIQUE constraint. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys21.test)
These routine might also return NULL if a memory allocation error occurs. (source c3ref/column_database_name.html)
These routines return 0 if the statement is incomplete. (source c3ref/complete.html, checked-by: th3/cov1/complete01.test)
The sqlite3_test_control() interface is used to read out internal state of SQLite and to inject faults into SQLite for testing purposes. (source c3ref/test_control.html)
The BLOB is closed unconditionally. Even if this routine returns an error code, the BLOB is still closed. (source c3ref/blob_close.html)
The number of columns in a table is limited by the SQLITE_MAX_COLUMN compile-time parameter. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
If the SELECT yields no rows, then the value of the expression is NULL. (source lang_expr.html, checked-by: tcl/e_expr.test)
Because the acquisition of locks is deferred until they are needed, it is possible that another thread or process could create a separate transaction and write to the database after the BEGIN on the current thread has executed. (source lang_transaction.html)
So as not to open security holes in older applications that are unprepared to deal with extension loading, and as a means of disabling extension loading while evaluating user-entered SQL, the following API is provided to turn the sqlite3_load_extension() mechanism on and off. (source c3ref/enable_load_extension.html)
Furthermore, the temp_store_directory pragma always assumes that any string that this variable points to is held in memory obtained from sqlite3_malloc and the pragma may attempt to free that memory using sqlite3_free. (source c3ref/temp_directory.html)
If the specified view cannot be found and the IF EXISTS clause is not present, it is an error. (source lang_dropview.html, checked-by: tcl/e_dropview.test)
Compute the last day of the current month. SELECT date('now','start of month','+1 month','-1 day'); (source lang_datefunc.html, checked-by: th3/req1/date01.test)
Additional sqlite3_trace() callbacks might occur as each triggered subprogram is entered. The callbacks for triggers contain a UTF-8 SQL comment that identifies the trigger. (source c3ref/profile.html)
The EXISTS operator always evaluates to one of the integer values 0 and 1. (source lang_expr.html, checked-by: tcl/e_expr.test)
It looks for out-of-order records, missing pages, malformed records, and corrupt indices. (source pragma.html)
Indexes are removed with the DROP INDEX command. (source lang_createindex.html, checked-by: th3/req1/createidx01.test)
A SELECT statement used as either a scalar subquery or as the right-hand operand of an IN, NOT IN or EXISTS expression may contain references to columns in the outer query. (source lang_expr.html)
The database connection can be changed between full and incremental autovacuum mode at any time. (source pragma.html, checked-by: th3/req1/pragma07.test)
All reads from and writes to the main database file begin at a page boundary and all writes are an integer number of pages in size. (source fileformat2.html)
Thus for the example index above, if there is no WHERE clause term that constraints column c, then terms that constrain columns a and b can be used with the index but not terms that constraint columns d through z. (source optoverview.html)
A column with affinity NONE does not prefer one storage class over another and no attempt is made to coerce data from one storage class into another. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
Memory allocation statistics are enabled by default unless SQLite is compiled with SQLITE_DEFAULT_MEMSTATUS=0 in which case memory allocation statistics are disabled by default. (source c3ref/c_config_getmalloc.html)
SQLite will invoke the destructor function (if it is not NULL) when SQLite no longer needs the pClientData pointer. (source c3ref/create_module.html)
The EXCEPT operator returns the subset of rows returned by the left SELECT that are not also returned by the right-hand SELECT. (source lang_select.html, checked-by: tcl/e_select.test)
The "%z" formatting option works like "%s" but with the addition that after the string has been read and copied into the result, sqlite3_free() is called on the input string. (source c3ref/mprintf.html, checked-by: th3/req1/malloc01.test)
The D and N arguments to sqlite3_backup_init(D,N,S,M) are the database connection associated with the destination database and the database name, respectively. (source c3ref/backup_finish.html, checked-by: th3/req1/backup02.test)
The values of these parameters (also called "host parameter names" or "SQL parameters") can be set using the sqlite3_bind_*() routines defined here. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
The expressions in the GROUP BY clause do not have to be expressions that appear in the result. (source lang_select.html, checked-by: tcl/e_select.test)
Calling this routine with a null pointer (such as would be returned by a failed call to sqlite3_blob_open()) is a harmless no-op. (source c3ref/blob_close.html, checked-by: th3/cov1/vdbeblob01.test)
Both the WHEN clause and the trigger actions may access elements of the row being inserted, deleted or updated using references of the form "NEW.column-name" and "OLD.column-name", where column-name is the name of a column from the table that the trigger is associated with. (source lang_createtrigger.html)
The xInit() method is passed a copy of the sqlite3_pcache_methods2.pArg value. (source c3ref/pcache_methods2.html, checked-by: th3/mkth3.tcl)
The xShutdown() method may be NULL. (source c3ref/pcache_methods2.html, checked-by: src/pcache.c)
For the purposes of the previous sentence, a column name preceded by one or more unary "+" operators is still considered a column name. (source datatype3.html, checked-by: th3/req1/datatype3_09.test)
The highwater mark associated with SQLITE_DBSTATUS_CACHE_USED is always 0. (source c3ref/c_dbstatus_options.html, checked-by: th3/req1/dbstatus01.test)
URIs are processed as UTF8 text. (source uri.html)
The content of these tables is not updated as the database changes so after making significant changes it might be prudent to rerun ANALYZE. (source optoverview.html)
If it is unable to promote the lock, then the in-memory cache will be left in an inconsistent state and so the error code is promoted from the relatively benign SQLITE_BUSY to the more severe SQLITE_IOERR_BLOCKED. (source c3ref/busy_handler.html)
In this latter case, the integer at offset 64 is true for incremental_vacuum and false for auto_vacuum. (source fileformat2.html)

(source lang_indexedby.html)
The sqlite3_errmsg() and sqlite3_errmsg16() return English-language text that describes the error, as either UTF-8 or UTF-16 respectively. (source c3ref/errcode.html)
An exclusive transaction causes EXCLUSIVE locks to be acquired on all databases. (source lang_transaction.html)
The first argument is an integer code for the specific parameter to measure. (source c3ref/status.html)
Like other SQL identifiers, database names are case-insensitive. (source lang_naming.html, checked-by: tcl/e_resolve.test)
When the legacy_file_format pragma is issued with no argument, it returns the setting of the flag. (source pragma.html, checked-by: th3/req1/pragma22.test)
The 4th argument to the sqlite3_exec() callback is an array of pointers to strings where each entry represents the name of corresponding result column as obtained from sqlite3_column_name(). (source c3ref/exec.html, checked-by: th3/req1/exec01.test)
As an example of the result table format, suppose a query result is as follows: Name | Age ----------------------- Alice | 43 Bob | 28 Cindy | 21 There are two column (M==2) and three rows (N==3). Thus the result table has 8 entries. Suppose the result table is stored in an array names azResult. Then azResult holds this content: azResult[0] = "Name"; azResult[1] = "Age"; azResult[2] = "Alice"; azResult[3] = "43"; azResult[4] = "Bob"; azResult[5] = "28"; azResult[6] = "Cindy"; azResult[7] = "21"; (source c3ref/free_table.html, checked-by: th3/req1/gettable01.test)
Comments can begin anywhere whitespace can be found, including inside expressions that span multiple lines. (source lang_comment.html, checked-by: th3/req1/comment01.test)
In the case of an update, this is the rowid after the update takes place. (source c3ref/update_hook.html)
When casting a BLOB value to a REAL, the value is first converted to TEXT. (source lang_expr.html, checked-by: tcl/e_expr.test)
If the DELETE statement also has an OFFSET clause, then it is similarly evaluated and cast to an integer value. Again, it is an error if the value cannot be losslessly converted to an integer. (source lang_delete.html, checked-by: tcl/e_delete.test)
Note that the journal_mode for an in-memory database is either MEMORY or OFF and can not be changed to a different value. (source pragma.html, checked-by: th3/req1/pragma23.test)
The %Q option works like %q except it also adds single quotes around the outside of the total string. Additionally, if the parameter in the argument list is a NULL pointer, %Q substitutes the text "NULL" (without single quotes). (source c3ref/mprintf.html, checked-by: th3/req1/malloc01.test)
It is possible for the library compile-time C preprocessor symbol SQLITE_TEMP_STORE to override this pragma setting. (source pragma.html)
Other parameters record only the highwater mark and not the current value. For these latter parameters nothing is written into *pCurrent. (source c3ref/status.html)
But making modifications to this table will likely perturb the AUTOINCREMENT key generation algorithm. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
If a table contains a user defined column named "rowid", "oid" or "_rowid_", then that name always refers the explicitly declared column and cannot be used to retrieve the integer rowid value. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
It is harmless, apart from the wasted memory, to make sz a little too large. (source c3ref/c_config_getmalloc.html)
The load_extension() function raises an exception if the extension fails to load or initialize correctly. (source lang_corefunc.html, checked-by: th3/cov1/func03.test)
Subject to rules (11), (12) and (13), they may also contain ORDER BY, LIMIT and OFFSET clauses. (source optoverview.html)
The sqlite3_blob_read() and sqlite3_blob_write() interfaces can be used to read or write small subsections of the BLOB. (source c3ref/blob.html, checked-by: th3/cov1/vdbeblob01.test)
Each non-aggregate expression in the result-set is evaluated once for an arbitrarily selected row of the dataset. (source lang_select.html, checked-by: tcl/e_select.test)
The sqlite3_config(SQLITE_CONFIG_PCACHE2, ...) interface can register an alternative page cache implementation by passing in an instance of the sqlite3_pcache_methods2 structure. (source c3ref/pcache_methods2.html)
If the xInit() method is NULL, then the built-in default page cache is used instead of the application defined page cache. (source c3ref/pcache_methods2.html, checked-by: src/pcache.c)
If the authority section is present, then the path is always an absolute pathname. (source uri.html)
The first argument (the third parameter to sqlite3_db_config() is a pointer to a memory buffer to use for lookaside memory. (source c3ref/c_dbconfig_enable_fkey.html, checked-by: src/main.c, th3/req1/dbconfig01.test)
SQL comments begin with two consecutive "-" characters (ASCII 0x2d) and extend up to and including the next newline character (ASCII 0x0a) or until the end of input, whichever comes first. (source lang_comment.html, checked-by: th3/req1/comment01.test)
Value "rwc" is equivalent to setting both SQLITE_OPEN_READWRITE and SQLITE_OPEN_CREATE. (source c3ref/open.html, checked-by: tcl/e_uri.test)
When no indices are available to aid the evaluation of a query, SQLite might create an automatic index that lasts only for the duration of a single SQL statement and use that index to help boost the query performance. (source optoverview.html)
The default setting is off, meaning that CHECK constraints are enforced by default. (source pragma.html, checked-by: th3/req1/pragma20.test)
For the INSERT and UPDATE commands, the keywords "ON CONFLICT" are replaced by "OR" so that the syntax reads more naturally. (source lang_conflict.html, checked-by: th3/req1/conflict01.test)
If the statement is a COMMIT or occurs outside of an explicit transaction, then you can retry the statement. (source c3ref/step.html)
As of version 3.6.18, without running ANALYZE, SQLite will choose option 2. (source optoverview.html)
The sqlite3_bind_* routines return SQLITE_OK on success or an error code if anything goes wrong. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
INTEGER PRIMARY KEY columns aside, both UNIQUE and PRIMARY KEY constraints are implemented by creating an index in the database (in the same way as a "CREATE UNIQUE INDEX" statement would). (source lang_createtable.html, checked-by: tcl/e_createtable.test)
Passing zero or a negative value as the nFrame parameter disables automatic checkpoints entirely. (source c3ref/wal_autocheckpoint.html)
The DROP VIEW statement removes a view created by the CREATE VIEW statement. (source lang_dropview.html, checked-by: slt/slt_lang_dropview.test, tcl/e_dropview.test)
The name of the database is "main" for the main database or "temp" for the TEMP database, or the name that appears after the AS keyword for databases that are added using the ATTACH SQL command. (source c3ref/file_control.html)
The third and fourth parameters to this function are the table and column name of the desired column, respectively. (source c3ref/table_column_metadata.html)
Unlike most SQL databases, SQLite does not restrict the type of data that may be inserted into a column based on the columns declared type. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
A value of 2 means the page is an interior index b-tree page. (source fileformat2.html)
If the value of
A scalar SQL function requires an implementation of the xFunc callback only; NULL pointers must be passed as the xStep and xFinal parameters. (source c3ref/create_function.html, checked-by: th3/req1/createfunc03.test)
The subquery is not DISTINCT or the outer query is not a join. (source optoverview.html)
If the name of the table is unique across all attached databases and the main and temp databases, then the database-name prefix is not required. (source lang_attach.html, checked-by: th3/req1/attach01.test)

(source lang_altertable.html, checked-by: th3/req1/altertable01.test)
The first time the sqlite3_aggregate_context(C,N) routine is called for a particular aggregate function, SQLite allocates N of memory, zeroes out that memory, and returns a pointer to the new memory. (source c3ref/aggregate_context.html, checked-by: th3/req1/aggcntx01.test)
Otherwise, if the ORDER BY expression is a column or an alias of an expression that is a column, then the default collation sequence for the column is used. (source lang_select.html, checked-by: tcl/e_select.test)
The entry point is zProc. (source c3ref/load_extension.html)
If the result is a BLOB or UTF-8 string then the sqlite3_column_bytes() routine returns the number of bytes in that BLOB or string. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
An ON UPDATE action is only taken if the values of the parent key are modified so that the new parent key values are not equal to the old. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys20.test)
The key to an index b-tree is a record composed of the columns that are being indexed followed by the rowid of the table row. (source fileformat2.html)
URI hexadecimal escape sequences (%HH) are supported within the path and query components of a URI. (source c3ref/open.html, checked-by: tcl/e_uri.test)
This option takes single argument of type int, interpreted as a boolean, which enables or disables the collection of memory allocation statistics. (source c3ref/c_config_getmalloc.html)
For example, CREATE TABLE parent(a PRIMARY KEY, b UNIQUE, c, d, e, f); CREATE UNIQUE INDEX i1 ON parent(c, d); CREATE INDEX i2 ON parent(e); CREATE UNIQUE INDEX i3 ON parent(f COLLATE nocase); CREATE TABLE child1(f, g REFERENCES parent(a)); -- Ok CREATE TABLE child2(h, i REFERENCES parent(b)); -- Ok CREATE TABLE child3(j, k, FOREIGN KEY(j, k) REFERENCES parent(c, d)); -- Ok CREATE TABLE child4(l, m REFERENCES parent(e)); -- Error! CREATE TABLE child5(n, o REFERENCES parent(f)); -- Error! CREATE TABLE child6(p, q, FOREIGN KEY(p, q) REFERENCES parent(b, c)); -- Error! CREATE TABLE child7(r REFERENCES parent(c)); -- Error! The foreign key constraints created as part of tables child1, child2 and child3 are all fine. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys07.test)
Reads are also usually an integer number of pages in size, with the one exception that when the database is first opened, the first 100 bytes of the database file (the database file header) are read as a sub-page size unit. (source fileformat2.html)
The ANALYZE command scans all indices of database where there might be a choice between two or more indices and gathers statistics on the selectiveness of those indices. (source optoverview.html)
The callback function registered by sqlite3_trace() is invoked at various times when an SQL statement is being run by sqlite3_step(). (source c3ref/profile.html)
However a left outer join is neither commutative nor associative and hence will not be reordered. (source optoverview.html)
PRAGMA default_cache_size; PRAGMA default_cache_size = Number-of-pages; This pragma queries or sets the suggested maximum number of pages of disk cache that will be allocated per open database file. (source pragma.html, checked-by: th3/req1/pragma09.test)
New VFSes are registered with sqlite3_vfs_register(). (source c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test)
The remaining seven methods defined by this structure (xMutexAlloc, xMutexFree, xMutexEnter, xMutexTry, xMutexLeave, xMutexHeld and xMutexNotheld) implement the following interfaces (respectively): sqlite3_mutex_alloc() sqlite3_mutex_free() sqlite3_mutex_enter() sqlite3_mutex_try() sqlite3_mutex_leave() sqlite3_mutex_held() sqlite3_mutex_notheld() (source c3ref/mutex_methods.html)
The 5th parameter to the authorizer callback is the name of the database ("main", "temp", etc.) if applicable. (source c3ref/c_alter_table.html)
Both of these limits can be lowered at runtime using the sqlite3_limit() C/C++ interface. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
For the index above and WHERE clause like this: ... WHERE a=5 AND b IN (1,2,3) AND d='hello' Only columns a and b of the index would be usable. The d column would not be usable because column c is not constrained and there can be no gaps in the set of columns that usable by the index. (source optoverview.html)
The VACUUM command works by copying the contents of the database into a temporary database file and then overwriting the original with the contents of the temporary file. (source lang_vacuum.html)
The _database_ routines return the database name, the _table_ routines return the table name, and the origin_ routines return the column name. (source c3ref/column_database_name.html)
The first argument is the database connection object to be interrogated. (source c3ref/db_status.html, checked-by: th3/req1/dbstatus01.test)
The view to drop is identified by the view-name and optional database-name specified as part of the DROP VIEW statement. This reference is resolved using the standard procedure for object resolution. (source lang_dropview.html, checked-by: slt/slt_lang_dropview.test)
The sqlite3_result_null() interface sets the return value of the application-defined function to be NULL. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
If an SQL operation is very nearly finished at the time when sqlite3_interrupt() is called, then it might not have an opportunity to be interrupted and might continue to completion. (source c3ref/interrupt.html)
SQLite strives to keep heap memory utilization below the soft heap limit by reducing the number of pages held in the page cache as heap memory usages approaches the limit. (source c3ref/soft_heap_limit64.html, checked-by: th3/req1/softheaplimit02.test)
Any prior cache entry associated with newKey is guaranteed not to be pinned. (source c3ref/pcache_methods2.html)
The sqlite3_rollback_hook() interface registers a callback function to be invoked whenever a transaction is rolled back. (source c3ref/commit_hook.html)

(source lang_droptrigger.html, checked-by: tcl/e_droptrigger.test)
The same arbitrarily selected row is used for each non-aggregate expression. (source lang_select.html, checked-by: tcl/e_select.test)
Other processes can continue to read from the database, however. (source lang_transaction.html)
The default setting is determined by the SQLITE_SECURE_DELETE compile-time option. (source pragma.html, checked-by: th3/cov1/pragma20.test, th3/cov1/pragma21.test)
The file change counter is a 4-byte big-endian integer which is incremented whenever the database file is unlocked after having been modified. (source fileformat2.html)
To make an existing VFS into the default VFS, register it again with the makeDflt flag set. (source c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test)
For example, if an "ON DELETE SET DEFAULT" action is configured, but there is no row in the parent table that corresponds to the default values of the child key columns, deleting a parent key while dependent child keys exist still causes a foreign key violation. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys18.test)
Note that for serial types 0, 8, 9, 12, and 13, the value is zero bytes in length. If all columns are of these types then the body section of the record is empty. (source fileformat2.html)
If the nByte argument is less than zero, then zSql is read up to the first zero terminator. (source c3ref/prepare.html, checked-by: th3/req1/prepare01.test)
If a HAVING clause is a non-aggregate expression, it is evaluated with respect to an arbitrarily selected row from the group. (source lang_select.html, checked-by: tcl/e_select.test)
All other databases use the normal locking mode by default and are affected by this pragma. (source pragma.html, checked-by: th3/req1/pragma04.test)

(source lang_select.html, checked-by: tcl/e_select.test)
However, the usable size is not allowed to be less than 480. In other words, if the page size is 512, then the reserved space size cannot exceed 32. (source fileformat2.html)
A call to either function replaces the existing collation-needed callback. (source c3ref/collation_needed.html)
Note that an inner transaction might commit (using the RELEASE command) but then later have its work undone by a ROLLBACK in an outer transaction. (source lang_savepoint.html)
If the first parameter to sqlite3_realloc() is a NULL pointer then its behavior is identical to calling sqlite3_malloc(N) where N is the second parameter to sqlite3_realloc(). (source c3ref/free.html, checked-by: src/malloc.c, th3/req1/malloc02.test)
This API may be used to register a callback that SQLite will invoke when the connection currently holding the required lock relinquishes it. (source c3ref/unlock_notify.html)
When the temp_store setting is changed, all existing temporary tables, indices, triggers, and views are immediately deleted. (source pragma.html)

(source lang_attach.html, checked-by: th3/req1/attach01.test)
Content is not actually committed on the disk until the outermost transaction commits. (source lang_savepoint.html)
SQLite will only request a recursive mutex in cases where it really needs one. (source c3ref/mutex_alloc.html)
PRAGMA locking_mode; PRAGMA locking_mode = NORMAL | EXCLUSIVE (source pragma.html, checked-by: th3/req1/pragma04.test)
If the path begins with a '/' character, then it is interpreted as an absolute path. (source c3ref/open.html, checked-by: tcl/e_uri.test)
The xMutexInit routine is called by SQLite exactly once for each effective call to sqlite3_initialize(). (source c3ref/mutex_methods.html)
The INDEXED BY and NOT INDEXED clauses are not allowed on DELETE statements within triggers. (source lang_delete.html, checked-by: tcl/e_delete.test)
The time() function returns the time as HH:MM:SS. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
When more than two tables are joined together as part of a FROM clause, the join operations are processed in order from left to right. In other words, the FROM clause (A join-op-1 B join-op-2 C) is computed as ((A join-op-1 B) join-op-2 C). (source lang_select.html, checked-by: tcl/e_select2.test)
Otherwise, they return the name of the attached database, table, or column that query result column was extracted from. (source c3ref/column_database_name.html)
If the table to which the trigger is attached is not in the temp database, then DELETE statements within the trigger body must operate on tables within the same database as it. (source lang_delete.html, checked-by: tcl/e_delete.test)
However, if the SELECT is a compound SELECT, then ORDER BY expressions that are not aliases to output columns must be exactly the same as an expression used as an output column. (source lang_select.html, checked-by: tcl/e_select.test)
SQLITE_STATUS_SCRATCH_SIZE This parameter records the largest memory allocation request handed to scratch memory allocator. Only the value returned in the *pHighwater parameter to sqlite3_status() is of interest. The value written into the *pCurrent parameter is undefined. (source c3ref/c_status_malloc_count.html)
The "INDEXED BY index-name" clause specifies that the named index must be used in order to look up values on the preceding table. (source lang_indexedby.html)
sqlite3_config() can be called as part of the implementation of an application-defined sqlite3_os_init(). (source c3ref/config.html)
The sqlite3_column_type() routine returns the datatype code for the initial data type of the result column. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
FTS4 uses term prefix indexes to speed up prefix queries. (source fts3.html)
If no metadata has been ever been set for the Nth argument of the function, or if the corresponding function parameter has changed since the meta-data was set, then sqlite3_get_auxdata() returns a NULL pointer. (source c3ref/get_auxdata.html)
String and BLOB values that do not look like numbers are interpreted as 0. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
An attempt to read from an expired BLOB handle fails with an error code of SQLITE_ABORT. (source c3ref/blob_read.html, checked-by: th3/cov1/vdbeblob01.test)
Queries of the following forms will be optimized to run in logarithmic time assuming appropriate indices exist: SELECT MIN(x) FROM table; SELECT MAX(x) FROM table; (source optoverview.html)
SQLITE_STATUS_MALLOC_COUNT This parameter records the number of separate memory allocations currently checked out. (source c3ref/c_status_malloc_count.html)
The ROLLBACK command with a TO clause rolls back transactions going backwards in time back to the most recent SAVEPOINT with a matching name. (source lang_savepoint.html)
This is the number of sort operations that have occurred. (source c3ref/c_stmtstatus_counter.html)
When the commit hook callback routine returns zero, the COMMIT operation is allowed to continue normally. (source c3ref/commit_hook.html)
The third and fourth arguments to the callback contain pointers to the database and table name containing the affected row. (source c3ref/update_hook.html)

(source lang.html, checked-by: th3/req1/lang01.test)
The default setting is synchronous=FULL. (source pragma.html)
When the locking-mode is set to EXCLUSIVE, the database connection never releases file-locks. (source pragma.html, checked-by: th3/req1/pragma04.test)
The SQLITE_FCNTL_PERSIST_WAL opcode is used to set or query the persistent Write AHead Log setting. (source c3ref/c_fcntl_chunk_size.html)
If the source database connection is being used to write to the source database when sqlite3_backup_step() is called, then SQLITE_LOCKED is returned immediately. (source c3ref/backup_finish.html)
PRAGMA fullfsync PRAGMA fullfsync = boolean; Query or change the fullfsync flag. (source pragma.html, checked-by: th3/req1/pragma11b.test)
If the database uses a 65536-byte page size and the reserved space is zero (the usual value for reserved space) then the cell content offset of an empty page wants to be 65536. However, that integer is too large to be stored in a 2-byte unsigned integer, so a value of 0 is used in its place. (source fileformat2.html)
Some virtual table implementations might impose additional restrictions. (source lang_createvtab.html)
If a given call to sqlite3_unlock_notify() would put the system in a deadlocked state, then SQLITE_LOCKED is returned and no unlock-notify callback is registered. (source c3ref/unlock_notify.html)
If there is no explicitly declared INTEGER PRIMARY KEY column, then the output parameters are set as follows: data type: "INTEGER" collation sequence: "BINARY" not null: 0 primary key: 1 auto increment: 0 (source c3ref/table_column_metadata.html)
A subsequent call to sqlite3_result_error() or sqlite3_result_error16() resets the error code to SQLITE_ERROR. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
If the table to which the trigger is attached is in the TEMP database, then the unqualified name of the table being updated is resolved in the same way as it is for a top-level statement (by searching first the TEMP database, then the main database, then any other databases in the order they were attached). (source lang_update.html, checked-by: tcl/e_update.test)
The usual algorithm is to give the newly created row a ROWID that is one larger than the largest ROWID in the table prior to the insert. (source autoinc.html, checked-by: src/vdbe.c, th3/req1/autoinc01.test)
Note that if X and Y.Z are column names, then +X and +Y.Z are considered expressions for the purpose of determining affinity. (source datatype3.html, checked-by: th3/req1/datatype3_05.test)
An INSERT that fails due to a constraint violation is not a successful INSERT and does not change the value returned by this routine. (source c3ref/last_insert_rowid.html)
sqlite3_free() is used to free idxPtr if and only if needToFreeIdxPtr is true. (source c3ref/index_info.html)
However, COMMIT will fail as long as foreign key constraints remain in violation. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys12.test, th3/req1/foreignkeys14.test)
Type is associated with individual values, not with the containers used to hold those values. (source c3ref/column_decltype.html)
The sqlite3_create_function() interface can be used to override the like() function and thereby change the operation of the LIKE operator. (source lang_corefunc.html, checked-by: th3/req1/func02.test)
The nullif(X,Y) function returns its first argument if the arguments are different and NULL if the arguments are the same. (source lang_corefunc.html, checked-by: th3/cov1/func02.test, th3/req1/func03.test)
For a blob value X, length(X) returns the number of bytes in the blob. (source lang_corefunc.html, checked-by: th3/cov1/func01.test)
If either operand has an explicit collating function assignment using the postfix COLLATE operator, then the explicit collating function is used for comparison, with precedence to the collating function of the left operand. (source datatype3.html, checked-by: th3/req1/datatype3_09.test)
Application developers can use the EXPLAIN QUERY PLAN prefix on a statement to get a high-level overview of the chosen query strategy. (source optoverview.html)
The SQLITE_FCNTL_SYNC_OMITTED opcode is generated internally by SQLite and sent to all VFSes in place of a call to the xSync method when the database connection has PRAGMA synchronous set to OFF. (source c3ref/c_fcntl_chunk_size.html)
For any key X, pointers to the left of a X refer to b-tree pages on which all keys are less than or equal to X. (source fileformat2.html)
A function where the preferred text encoding matches the database encoding is a better match than a function where the encoding is different. (source c3ref/create_function.html, checked-by: th3/req1/createfunc04.test)
The text of query parameters is appended to the filename argument of the xOpen method of the VFS. (source uri.html)
When an INTEGER or REAL is compared to another INTEGER or REAL, a numerical comparison is performed. (source datatype3.html, checked-by: th3/req1/datatype3_04.test)
If the ORDER BY expression is a constant integer K then the expression is considered an alias for the K-th column of the result set (columns are numbered from left to right starting with 1). (source lang_select.html, checked-by: tcl/e_select.test)
If offset iOffset is less than N bytes from the end of the BLOB, SQLITE_ERROR is returned and no data is written. (source c3ref/blob_write.html)
If the savepoint-name in a ROLLBACK TO command does not match any SAVEPOINT on the stack, then the ROLLBACK command fails with an error and leaves the state of the database unchanged. (source lang_savepoint.html)
The source database connection may be used by the application for other purposes while a backup operation is underway or being initialized. (source c3ref/backup_finish.html)
If a NOT NULL constraint is specified, then the column must have a default value other than NULL. (source lang_altertable.html, checked-by: th3/req1/altertable01.test)
sqlite> EXPLAIN QUERY PLAN SELECT (SELECT b FROM t1 WHERE a=0), (SELECT a FROM t1 WHERE b=t2.c) FROM t2; 0|0|0|SCAN TABLE t2 (~1000000 rows) 0|0|0|EXECUTE SCALAR SUBQUERY 1 1|0|0|SEARCH TABLE t1 USING COVERING INDEX i2 (a=?) (~10 rows) 0|0|0|EXECUTE CORRELATED SCALAR SUBQUERY 2 2|0|0|SEARCH TABLE t1 USING INDEX i3 (b=?) (~10 rows) (source eqp.html, checked-by: tcl/eqp.test)
Such transactions usually persist until the next COMMIT or ROLLBACK command. But a transaction will also ROLLBACK if the database is closed or if an error occurs and the ROLLBACK conflict resolution algorithm is specified. (source lang_transaction.html)
The SQLITE_OPEN_EXCLUSIVE flag is always used in conjunction with the SQLITE_OPEN_CREATE flag, which are both directly analogous to the O_EXCL and O_CREAT flags of the POSIX open() API. (source c3ref/vfs.html, checked-by: th3/mkth3.tcl)
Calling sqlite3_auto_extension(X) with an entry point X that is already on the list of automatic extensions is a harmless no-op. (source c3ref/auto_extension.html, checked-by: th3/req1/autoext01.test)
The leftmost column of the result set has the index 0. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
If the argument to sqlite3_mutex_enter(), sqlite3_mutex_try(), or sqlite3_mutex_leave() is a NULL pointer, then all three routines behave as no-ops. (source c3ref/mutex_alloc.html, checked-by: th3/cov1/mutex01.test)
If the result is a BLOB or UTF-16 string then the sqlite3_column_bytes16() routine returns the number of bytes in that BLOB or string. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
The non-equals operator can be either != or <>. (source lang_expr.html, checked-by: tcl/e_expr.test)
The index of the column is stored in aConstraint[].iColumn. (source c3ref/index_info.html)
Additional application-specific collating functions can be added to SQLite using the sqlite3_create_collation() interface. (source fileformat2.html)
If SQLite is compiled with the SQLITE_MUTEX_APPDEF preprocessor macro defined (with "-DSQLITE_MUTEX_APPDEF=1"), then no mutex implementation is included with the library. In this case the application must supply a custom mutex implementation using the SQLITE_CONFIG_MUTEX option of the sqlite3_config() function before calling sqlite3_initialize() or any other public sqlite3_ function that calls sqlite3_initialize(). (source c3ref/mutex_alloc.html)
If sqlite3_close() is called on a database connection that still has outstanding prepared statements or BLOB handles, then it returns SQLITE_BUSY. (source c3ref/close.html, checked-by: th3/cov1/main23.test)
The wal_autocheckpoint pragma can be used to invoke this interface from SQL. (source c3ref/wal_autocheckpoint.html)
Simply setting the locking-mode to NORMAL is not enough - locks are not be released until the next time the database file is accessed. (source pragma.html, checked-by: th3/req1/pragma04.test)
For each limit category SQLITE_LIMIT_NAME there is a hard upper bound set at compile-time by a C preprocessor macro called SQLITE_MAX_NAME. (The "_LIMIT_" in the name is changed to "_MAX_".) (source c3ref/limit.html, checked-by: src/main.c)
If a WHERE clause is supplied, then only those rows for which the result of evaluating the WHERE clause as a boolean expression is true are deleted. (source lang_delete.html, checked-by: tcl/e_delete.test)
The load_extension() function will fail if the extension attempts to modify or delete an SQL function or collating sequence. (source lang_corefunc.html, checked-by: th3/cov1/func03.test)
The first three columns contain an integer value. (source eqp.html, checked-by: th3/req1/eqp01.test)
The default value of the fullfsync flag is off. (source pragma.html, checked-by: th3/req1/pragma11b.test)
The mode query parameter determines if the new database is opened read-only, read-write, or read-write and created if it does not exist. (source uri.html)
The minimum value is the first non-NULL value that would appear in an ORDER BY of the column. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
Each foreign key constraint in SQLite is classified as either immediate or deferred. (source foreignkeys.html, checked-by: src/build.c, src/fkey.c, src/sqliteInt.h, tcl/e_fkey.test, th3/req1/foreignkeys12.test)
Casting a REAL or INTEGER value to NUMERIC is a no-op, even if a real value could be losslessly converted to an integer. (source lang_expr.html, checked-by: tcl/e_expr.test)
The SQLITE_SOURCE_ID macro evaluates to a string which identifies a particular check-in of SQLite within its configuration management system. (source c3ref/c_source_id.html, checked-by: th3/req1/version01.test)
Every call to sqlite3_backup_step() obtains a shared lock on the source database that lasts for the duration of the sqlite3_backup_step() call. (source c3ref/backup_finish.html)
There can only be a single busy handler defined for each database connection. Setting a new busy handler clears any previously set handler. (source c3ref/busy_handler.html)
An underscore ("_") in the LIKE pattern matches any single character in the string. (source lang_expr.html, checked-by: tcl/e_expr.test)
Whenever a prepared statement runs, it first checks the schema cookie to make sure the value is the same as when the statement was prepared and if the schema cookie has changed, the statement aborts in order to force the statement to be reprepared. (source fileformat2.html)
Any column in an SQLite version 3 database, except an INTEGER PRIMARY KEY column, may be used to store a value of any storage class. (source datatype3.html, checked-by: th3/req1/datatype3_11.test)
Any scalar expression may be used in the LIMIT clause, so long as it evaluates to an integer or a value that can be losslessly converted to an integer. (source lang_select.html, checked-by: tcl/e_select.test)
The locking mode of temp and in-memory databases cannot be changed. (source pragma.html, checked-by: th3/req1/pragma04.test)

(source lang_createtrigger.html)
But virtual terms never generate code that is tested against input rows. (source optoverview.html, checked-by: src/where.c)
If the callback on a commit hook function returns non-zero, then the commit is converted into a rollback. (source c3ref/commit_hook.html)
After calling the xDestroy() method, SQLite considers the sqlite3_pcache* handle invalid, and will not use it with any other sqlite3_pcache_methods2 functions. (source c3ref/pcache_methods2.html, checked-by: th3/mkth3.tcl)
If the fourth parameter is negative, the length of the string is the number of bytes up to the first zero terminator. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
In a CASE without a base expression, each WHEN expression is evaluated and the result treated as a boolean, starting with the leftmost and continuing to the right. (source lang_expr.html, checked-by: tcl/e_expr.test)
The WAL header is 32 bytes in size and consists of the following eight big-endian 32-bit unsigned integer values: WAL Header Format OffsetSizeDescription 04 Magic number. 0x377f0682 or 0x377f0683 44 File format version. Currently 3007000. 84 Database page size. Example: 1024 124 Checkpoint sequence number 164 Salt-1: random integer incremented with each checkpoint 204 Salt-2: a different random number for each checkpoint 244 Checksum-1: First part of a checksum on the first 24 bytes of header 284 Checksum-2: Second part of the checksum on the first 24 bytes of header (source fileformat2.html)
The final callback parameter is the rowid of the row. (source c3ref/update_hook.html)
SQLITE_STATUS_MEMORY_USED This parameter is the current amount of memory checked out using sqlite3_malloc(), either directly or indirectly. The figure includes calls made to sqlite3_malloc() by the application and internal memory usage by the SQLite library. Scratch memory controlled by SQLITE_CONFIG_SCRATCH and auxiliary page-cache memory controlled by SQLITE_CONFIG_PAGECACHE is not included in this parameter. The amount returned is the sum of the allocation sizes as reported by the xSize method in sqlite3_mem_methods. (source c3ref/c_status_malloc_count.html)
And the declared type of "STRING" has an affinity of NUMERIC, not TEXT. (source datatype3.html, checked-by: th3/req1/datatype3_02.test)
If the UPDATE statement also has an OFFSET clause, then it is similarly evaluated and cast to an integer value. If the OFFSET expression evaluates to a non-negative value M, then the first M rows are skipped and the following N rows updated instead. (source lang_update.html, checked-by: tcl/e_update.test)
The legacy behavior was that sqlite3_step() would only return a generic SQLITE_ERROR result code and the application would have to make a second call to sqlite3_reset() in order to find the underlying cause of the problem. (source c3ref/prepare.html, checked-by: th3/req1/prepare03.test)
Root pages are moved to the beginning of the database file by the CREATE TABLE, CREATE INDEX, DROP TABLE, and DROP INDEX operations. (source fileformat2.html)
If no arguments are given, all attached databases are analyzed. (source lang_analyze.html, checked-by: th3/req1/analyze01.test)
Note that the *ppBlob variable is always initialized in a way that makes it safe to invoke sqlite3_blob_close() on *ppBlob regardless of the success or failure of this routine. (source c3ref/blob_open.html)
Triggers are removed using the DROP TRIGGER statement. (source lang_createtrigger.html)
Any SELECT statement, including compound SELECTs and SELECT statements with ORDER BY and/or LIMIT clauses, may be used in an INSERT statement of this form. (source lang_insert.html, checked-by: tcl/e_insert.test)
Casting a value to a
The default suggested cache size is 2000 pages. (source pragma.html, checked-by: th3/req1/pragma09.test)
The "E" character that begins the exponentiation clause of a floating point literal can be either upper or lower case. (source lang_expr.html)
The new mutex is recursive when SQLITE_MUTEX_RECURSIVE is used but not necessarily so when SQLITE_MUTEX_FAST is used. (source c3ref/mutex_alloc.html)
Strings returned by sqlite3_column_text() and sqlite3_column_text16(), even empty strings, are always zero-terminated. (source c3ref/column_blob.html, checked-by: src/vdbemem.c, th3/req1/column01.test)
Let M be ((U-12)*32/255)-23. If P is greater than X then the number of byte stored on the b-tree page is the smaller of M+((P-M)%(U-4)) and X. (source fileformat2.html)
After the header and zero padding are zero or more page records. (source fileformat2.html)
The lower(X) function returns a copy of string X with all ASCII characters converted to lower case. (source lang_corefunc.html, checked-by: th3/cov1/func02.test)
The final column, "detail", contains a text value which carries most of the useful information. (source eqp.html, checked-by: th3/req1/eqp01.test)
The error code and message for the failed call to sqlite3_backup_init() can be retrieved using the sqlite3_errcode(), sqlite3_errmsg(), and/or sqlite3_errmsg16() functions. (source c3ref/backup_finish.html, checked-by: th3/req1/backup02.test)
The authorizer callback should return SQLITE_OK to allow the action, SQLITE_IGNORE to disallow the specific action but allow the SQL statement to continue to be compiled, or SQLITE_DENY to cause the entire SQL statement to be rejected with an error. (source c3ref/set_authorizer.html)
If the 2nd parameter to sqlite3_exec() is a NULL pointer, a pointer to an empty string, or a pointer that contains only whitespace and/or SQL comments, then no SQL statements are evaluated and the database is not changed. (source c3ref/exec.html, checked-by: th3/req1/exec01.test)
The sqlite3_user_data() interface returns a copy of the pointer that was the pUserData parameter (the 5th parameter) of the sqlite3_create_function() and sqlite3_create_function16() routines that originally registered the application defined function. (source c3ref/user_data.html, checked-by: th3/req1/userdata01.test)
The content of the SQLITE_SEQUENCE table can be modified using ordinary UPDATE, INSERT, and DELETE statements. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
The default built-in lower() function works for ASCII characters only. (source lang_corefunc.html, checked-by: th3/cov1/func02.test)
For example, the function "count(distinct X)" will return the number of distinct values of column X instead of the total number of non-null values in column X. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
If a database name is given as the argument, then all tables and indices in that one database are analyzed. (source lang_analyze.html, checked-by: th3/req1/analyze01.test)
The "order" option may be set to either "DESC" or "ASC" (in upper or lower case). (source fts3.html)
If the destructor argument is SQLITE_STATIC, it means that the content pointer is constant and will never change. (source c3ref/c_static.html, checked-by: th3/req1/clearbind01.test, th3/req1/static01.test)
The specific value of WHERE-clause parameter might influence the choice of query plan if the parameter is the left-hand side of a LIKE or GLOB operator or if the parameter is compared to an indexed column and the SQLITE_ENABLE_STAT3 compile-time option is enabled. (source c3ref/prepare.html, checked-by: th3/req1/prepare04.test)
Literal values may be integers, floating point numbers, strings, BLOBs, or NULLs. (source lang_expr.html, checked-by: tcl/e_expr.test)
If a HAVING clause is specified, it is evaluated once for each group of rows as a boolean expression. If the result of evaluating the HAVING clause is false, the group is discarded. (source lang_select.html, checked-by: tcl/e_select.test)
SQLite will never require a scratch buffer that is more than 6 times the database page size. (source c3ref/c_config_getmalloc.html)
Inner joins can be freely reordered. (source optoverview.html)
If the table to which the trigger is attached is in the TEMP database, then the unqualified name of the table being deleted is resolved in the same way as it is for a top-level statement (by searching first the TEMP database, then the main database, then any other databases in the order they were attached). (source lang_delete.html, checked-by: tcl/e_delete.test)
To avoid having to register all collation sequences before a database can be used, a single callback function may be registered with the database connection to be invoked whenever an undefined collation sequence is required. (source c3ref/collation_needed.html)
If the second parameter to sqlite3_realloc() is zero or negative then the behavior is exactly the same as calling sqlite3_free(P) where P is the first parameter to sqlite3_realloc(). (source c3ref/free.html, checked-by: src/malloc.c, th3/req1/malloc02.test)
If it is zero, the BLOB is opened for read access. (source c3ref/blob_open.html)
The min/max-value pair columns are always stored as 32-bit floating point values. (source rtree.html)
As an internal optimization, small floating point values with no fractional component and stored in columns with REAL affinity are written to disk as integers in order to take up less space and are automatically converted back into floating point as the value is read out. (source datatype3.html, checked-by: th3/req1/datatype3_12.test)
julianday(timestring, modifier, modifier, ...) (source lang_datefunc.html, checked-by: th3/req1/date01.test)
Or, if a PRIMARY KEY clause is specified as a table-constraint, then the primary key of the table consists of the list of columns specified as part of the PRIMARY KEY clause. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
a NOT NULL constraint dictates that the associated column may not contain a NULL value. Attempting to set the column value to NULL when inserting a new row or updating an existing one causes a constraint violation. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The size of a blob may not be changed by this interface. (source c3ref/blob_open.html)
Both forms of the pragma return the maximum page count. (source pragma.html, checked-by: th3/req1/pragma12.test)
The zeroblob(N) function returns a BLOB consisting of N bytes of 0x00. (source lang_corefunc.html, checked-by: th3/cov1/func04.test)
If sqlite3_open_v2() is used and the vfs option is present, then the VFS specified by the option takes precedence over the value passed as the fourth parameter to sqlite3_open_v2(). (source c3ref/open.html, checked-by: tcl/e_uri.test)
When an applicable constraint violation occurs, the ROLLBACK resolution algorithm aborts the current SQL statement with an SQLITE_CONSTRAINT error and rolls back the current transaction. (source lang_conflict.html, checked-by: th3/req1/conflict01.test)
But the FAIL resolution does not back out prior changes of the SQL statement that failed nor does it end the transaction. (source lang_conflict.html, checked-by: th3/req1/conflict01.test)
If the path component is omitted, then the database is stored in a temporary file that will be automatically deleted when the database connection closes. (source uri.html)
The syntax for the ON CONFLICT clause is as shown above for the CREATE TABLE command. (source lang_conflict.html, checked-by: th3/req1/conflict01.test)
This option takes two arguments that determine the default memory allocation for the lookaside memory allocator on each database connection. The first argument is the size of each lookaside buffer slot and the second is the number of slots allocated to each database connection. (source c3ref/c_config_getmalloc.html)
If EXCLUSIVE locking mode is set prior to the first WAL-mode database access, then SQLite never attempts to call any of the shared-memory methods and hence no shared-memory wal-index is ever created. (source wal.html, checked-by: th3/req1/pragma05.test)
On windows, if the absolute path begins with "/X:/" where X is any single ASCII alphabetic character ("a" through "z" or "A" through "Z") then the "X:" is understood to be the drive letter of the volume containing the file, not the toplevel directory. (source uri.html)
The second parameter is the name of the SQL function to be created or redefined. (source c3ref/create_function.html, checked-by: th3/req1/createfunc01.test)
However, if three additional indices where added that contained columns b, c, and d as their left-most columns, then the OR-clause optimization might apply. (source optoverview.html)
If the payload size P is less than or equal to U-35 then the entire payload is stored on the b-tree leaf page. (source fileformat2.html)
Autocommit mode is re-enabled by a COMMIT or ROLLBACK. (source c3ref/get_autocommit.html)
The sqlite3_result_zeroblob() interfaces set the result of the application-defined function to be a BLOB containing all zero bytes and N bytes in size, where N is the value of the 2nd parameter. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
The normal configuration for SQLite running on workstations is for atomic write to be disabled, for the maximum page size to be set to 65536, for SQLITE_DEFAULT_PAGE_SIZE to be 1024, and for the maximum default page size to be set to 8192. (source pragma.html)
Function sqlite3_backup_step(B,N) will copy up to N pages between the source and destination databases specified by sqlite3_backup object B. (source c3ref/backup_finish.html, checked-by: th3/req1/backup03.test)
The schema version is used by SQLite each time a query is executed to ensure that the internal cache of the schema used when compiling the SQL query matches the schema of the database against which the compiled query is actually executed. (source pragma.html)
FOR EACH ROW implies that the SQL statements specified in the trigger may be executed (depending on the WHEN clause) for each database row being inserted, updated or deleted by the statement causing the trigger to fire. (source lang_createtrigger.html)
If the second parameter (zDbName) does not match the name of any open database file, then SQLITE_ERROR is returned. (source c3ref/file_control.html)
Unlike normal SQLite columns, an integer primary key or rowid column must contain integer values. Integer primary key or rowid columns are not able to hold floating point values, strings, BLOBs, or NULLs. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
Triggers are automatically dropped when the table that they are associated with (the table-name table) is dropped. (source lang_createtrigger.html)
A "CREATE TABLE ... AS SELECT" statement creates and populates a database table based on the results of a SELECT statement. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
If the transaction is immediate, then RESERVED locks are acquired on all databases as soon as the BEGIN command is executed, without waiting for the database to be used. (source lang_transaction.html)
Only copies of SQLite newer than version 3.3.0 (released on 2006-01-10) are able to understand the newer descending index file format. (source lang_createindex.html)
Thus, when called from the top level, this function returns the number of changes in the most recent INSERT, UPDATE, or DELETE that also occurred at the top level. (source c3ref/changes.html)
The time string is followed by zero or more modifiers. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
When three or more simple SELECTs are connected into a compound SELECT, they group from left to right. In other words, if "A", "B" and "C" are all simple SELECT statements, (A op B op C) is processed as ((A op B) op C). (source lang_select.html, checked-by: tcl/e_select.test)
At least szOsFile bytes of memory are allocated by SQLite to hold the sqlite3_file structure passed as the third argument to xOpen. (source c3ref/vfs.html, checked-by: th3/mkth3.tcl)
Attempts to insert something other than an integer into the first column, or something other than a floating point value into the other columns, will result in an error. (source rtree.html)
If SQLite is compiled with the SQLITE_ENABLE_ATOMIC_WRITE option, then the default page size is chosen to be the largest page size less than or equal to SQLITE_MAX_DEFAULT_PAGE_SIZE for which atomic write is enabled according to the xDeviceCharacteristics method of the sqlite3_io_methods object for the database file. (source pragma.html)
No affinity transformations are applied to any values when comparing rows as part of a compound SELECT. (source lang_select.html, checked-by: tcl/e_select.test)
Comments are not SQL commands, but can occur within the text of SQL queries passed to sqlite3_prepare_v2() and related interfaces. (source lang_comment.html, checked-by: th3/req1/comment01.test)
If an immediate foreign key constraint is violated, the DROP TABLE statement fails and the table is not dropped. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys16.test, th3/req1/foreignkeys22.test)
The ESCAPE clause cannot appear on the LIKE operator. (source optoverview.html, checked-by: th3/cov1/where03.test)
The fourth argument, pArg, is an application data pointer that is passed through as the first argument to the collating function callback. (source c3ref/create_collation.html, checked-by: th3/req1/createcoll01.test)
The parent key must be a named column or columns in the parent table, not the rowid. (source foreignkeys.html, checked-by: th3/req1/foreignkeys03.test)

(source lang_droptable.html)
sqlite> EXPLAIN QUERY PLAN SELECT c, d FROM t2 ORDER BY c; 0|0|0|SCAN TABLE t2 (~1000000 rows) 0|0|0|USE TEMP B-TREE FOR ORDER BY (source eqp.html, checked-by: tcl/eqp.test)
If a memory allocation fails, then SQLITE_NOMEM is returned. (source c3ref/complete.html, checked-by: th3/cov1/complete01.test)
If the second argument to SQLITE_DBCONFIG_LOOKASIDE is not a multiple of 8, it is internally rounded down to the next smaller multiple of 8. (source c3ref/c_dbconfig_enable_fkey.html, checked-by: src/main.c)
an implicit DELETE FROM
If a keyword in single quotes (ex: 'key' or 'glob') is used in a context where an identifier is allowed but where a string literal is not allowed, then the token is understood to be an identifier instead of a string literal. (source lang_keywords.html, checked-by: th3/req1/keyword01.test)
Note that when the right-hand side of a LIKE or GLOB operator is a parameter and the statement is prepared using sqlite3_prepare_v2() or sqlite3_prepare16_v2() then the statement is automatically reparsed and recompiled on the first sqlite3_step() call of each run if the binding to the right-hand side parameter has changed since the previous run. (source optoverview.html)
For the LIKE operator, if case_sensitive_like mode is enabled then the column must indexed using BINARY collating sequence, or if case_sensitive_like mode is disabled then the column must indexed using built-in NOCASE collating sequence. (source optoverview.html, checked-by: th3/cov1/where03.test)

(source lang_transaction.html)
RTRIM Like BINARY except that spaces at the end of the string are elided prior to comparison. (source fileformat2.html)
PRAGMA secure_delete; PRAGMA database.secure_delete; PRAGMA secure_delete = boolean PRAGMA database.secure_delete = boolean Query or change the secure-delete setting. (source pragma.html, checked-by: th3/cov1/pragma20.test, th3/cov1/pragma21.test)
These routines do not parse the SQL statements thus will not detect syntactically incorrect SQL. (source c3ref/complete.html, checked-by: th3/cov1/complete01.test)
Thus, the backup may be performed on a live source database without preventing other database connections from reading or writing to the source database while the backup is underway. (source c3ref/backup_finish.html, checked-by: th3/req1/backup01.test)
If the most recent call to sqlite3_step(S) for the prepared statement S indicated an error, then sqlite3_reset(S) returns an appropriate error code. (source c3ref/reset.html, checked-by: th3/mkth3.tcl)
In SQLite, every row of every table has an 64-bit signed integer ROWID. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
The ON DELETE and ON UPDATE action associated with each foreign key in an SQLite database is one of "NO ACTION", "RESTRICT", "SET NULL", "SET DEFAULT" or "CASCADE". (source foreignkeys.html, checked-by: src/parse.y, tcl/e_fkey.test, th3/req1/foreignkeys16.test)
When the EXPLAIN keyword appears by itself it causes the statement to behave as a query that returns the sequence of virtual machine instructions it would have used to execute the command had the EXPLAIN keyword not been present. (source lang_explain.html)
The first parameter, szPage, is the size in bytes of the pages that must be allocated by the cache. (source c3ref/pcache_methods2.html, checked-by: th3/mkth3.tcl)
The parameter N is the number of virtual machine instructions that are evaluated between successive invocations of the callback X. (source c3ref/progress_handler.html, checked-by: th3/req1/progress01.test)
Terms of the ORDER BY clause that is part of a SELECT statement may be assigned a collating sequence using the COLLATE operator, in which case the specified collating function is used for sorting. (source datatype3.html, checked-by: th3/req1/datatype3_10.test)
SQLITE_OPEN_READONLY The database is opened in read-only mode. If the database does not already exist, an error is returned. (source c3ref/open.html)
The SQLITE_UTF16 and SQLITE_UTF16_ALIGNED values for eTextRep force strings to be UTF16 with native byte order. (source c3ref/create_collation.html, checked-by: th3/req1/createcoll01.test)
Aggregate functions may only be used in a SELECT statement. (source lang_expr.html)
Module names must be registered before creating a new virtual table using the module and before using a preexisting virtual table for the module. (source c3ref/create_module.html)
A question mark followed by a number NNN holds a spot for the NNN-th parameter. NNN must be between 1 and SQLITE_MAX_VARIABLE_NUMBER. (source lang_expr.html, checked-by: tcl/e_expr.test)
If no database is specified as part of the object reference, then SQLite searches the main, temp and all attached databases for an object with a matching name. The temp database is searched first, followed by the main database, followed all attached databases in the order that they were attached. The reference resolves to the first match found. (source lang_naming.html, checked-by: tcl/e_resolve.test)
The subquery does not use OFFSET. (source optoverview.html)
The following table summarizes the interaction of the SQLITE_TEMP_STORE preprocessor macro and the temp_store pragma: SQLITE_TEMP_STORE PRAGMAtemp_store Storage used forTEMP tables and indices 0 any file 1 0 file 1 1 file 1 2 memory 2 0 memory 2 1 file 2 2 memory 3 any memory (source pragma.html)
The page header size is 20 to 40 bytes depending on the host architecture. (source c3ref/c_config_getmalloc.html)
There may be at most one unlock-notify callback registered by a blocked connection. If sqlite3_unlock_notify() is called when the blocked connection already has a registered unlock-notify callback, then the new callback replaces the old. (source c3ref/unlock_notify.html)
In SQLite, if any of the child key columns (in this case songartist and songalbum) are NULL, then there is no requirement for a corresponding row in the parent table. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys11.test)
PRAGMA legacy_file_format; PRAGMA legacy_file_format = boolean This pragma sets or queries the value of the legacy_file_format flag. (source pragma.html, checked-by: th3/req1/pragma22.test)
A question mark that is not followed by a number creates a parameter with a number one greater than the largest parameter number already assigned. (source lang_expr.html, checked-by: tcl/e_expr.test)
The REGEXP operator is a special syntax for the regexp() user function. (source lang_expr.html, checked-by: tcl/e_expr.test)
But special processing applies to the ON and USING clauses of an OUTER join: specifically, the constraints in an ON or USING clause do not apply if the right table of the join is on a null row, but the constraints do apply in the WHERE clause. (source optoverview.html)
In order to use foreign key constraints in SQLite, the library must be compiled with neither SQLITE_OMIT_FOREIGN_KEY or SQLITE_OMIT_TRIGGER defined. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys05.test)
Otherwise, the SELECT returns the first N rows of its result set only, where N is the value that the LIMIT expression evaluates to. (source lang_select.html, checked-by: tcl/e_select.test)
This function is used to write data into an open BLOB handle from a caller-supplied buffer. (source c3ref/blob_write.html)
In this case, the first expression is used as the OFFSET expression and the second as the LIMIT expression. (source lang_select.html, checked-by: tcl/e_select.test)
The SQLITE_MUTEX_OS2, SQLITE_MUTEX_PTHREADS, and SQLITE_MUTEX_W32 implementations are appropriate for use on OS/2, Unix, and Windows. (source c3ref/mutex_alloc.html)
Thus, for example, the data 2001-03-31 modified by '+1 month' initially yields 2001-04-31, but April only has 30 days so the date is normalized to 2001-05-01. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
Foreign key DDL errors are reported regardless of whether or not foreign key constraints are enabled when the table is created. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys08.test)
However, if the "IF NOT EXISTS" clause is specified as part of the CREATE TABLE statement and a table or view of the same name already exists, the CREATE TABLE command simply has no effect (and no error message is returned). (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The algorithm specified in the OR clause of an INSERT or UPDATE overrides any algorithm specified in a CREATE TABLE. (source lang_conflict.html, checked-by: th3/req1/conflict04.test)
All indices and triggers associated with the table are also deleted. (source lang_droptable.html, checked-by: slt/slt_lang_droptable.test)
The left-most column is column 0 for these routines. (source c3ref/column_database_name.html)
Each row in a table with a primary key must feature a unique combination of values in its primary key columns. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
If Y is negative then the first character of the substring is found by counting from the right rather than the left. (source lang_corefunc.html, checked-by: th3/cov1/func02.test)
The optimizer automatically inverts terms of the form "expr OP column" and makes other simplifications to the WHERE clause in an attempt to get as many WHERE clause terms into the form shown above as possible. (source c3ref/index_info.html)
The query string is optional. (source uri.html)
The sqlite3_result_value() interface sets the result of the application-defined function to be a copy the unprotected sqlite3_value object specified by the 2nd parameter. (source c3ref/result_blob.html, checked-by: th3/req1/result03.test)
If the CHECK expression evaluates to NULL, or any other non-zero value, it is not a constraint violation. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The second column of the result is the rank of the column within the table. (source pragma.html, checked-by: th3/req1/pragma15.test)
The default mode is for LIKE comparisons to be insensitive to differences of case for latin1 characters. (source optoverview.html, checked-by: th3/cov1/pragma02.test, th3/cov1/where03.test)
The legacy_file_format pragma can be used to cause SQLite to create new database files using format 1. (source fileformat2.html)
PRAGMA automatic_index; PRAGMA automatic_index = boolean; Query, set, or clear the automatic indexing capability. (source pragma.html, checked-by: th3/req1/pragma08.test)
The count(X) function returns a count of the number of times that X is not NULL in a group. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
The sqlite3_extended_errcode() interface is the same except that it always returns the extended result code even when extended result codes are disabled. (source c3ref/errcode.html)
The sqlite3_result_error_code() function changes the error code returned by SQLite as a result of an error in a function. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
If the callback pointer to sqlite3_exec() is NULL, then no callback is ever invoked and result rows are ignored. (source c3ref/exec.html, checked-by: th3/req1/exec01.test)
The sqlite3_release_memory() routine is a no-op returning zero if SQLite is not compiled with SQLITE_ENABLE_MEMORY_MANAGEMENT. (source c3ref/release_memory.html, checked-by: src/malloc.c, th3/req1/releasemem01.test)
Any leading spaces in the TEXT value when converting from TEXT to INTEGER are ignored. (source lang_expr.html, checked-by: tcl/e_expr.test)
The sqlite3_vsnprintf() routine is a varargs version of sqlite3_snprintf(). (source c3ref/mprintf.html, checked-by: th3/req1/malloc01.test)
By default, the error code is SQLITE_ERROR. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
The first time this routine is invoked (either internally or by the application) the PRNG is seeded using randomness obtained from the xRandomness method of the default sqlite3_vfs object. (source c3ref/randomness.html)
If an authorizer callback returns SQLITE_IGNORE for an SQLITE_DELETE action code, then the DELETE operation will proceed but the truncate optimization will be bypassed and rows will be deleted one by one. (source lang_delete.html)
The sqlite3_status() routine returns SQLITE_OK on success and a non-zero error code on failure. (source c3ref/status.html)
Cache sharing is enabled and disabled for an entire process. (source c3ref/enable_shared_cache.html)
Or, if the SELECT would return less than M+N rows if it did not have a LIMIT clause, then the first M rows are skipped and the remaining rows (if any) are returned. (source lang_select.html, checked-by: tcl/e_select.test)
The open attempt fails if NAME is not the name of a VFS that is built into SQLite or that has been previously registered using sqlite3_vfs_register(). (source uri.html)
The case_sensitive_like pragma installs a new application-defined LIKE function that is either case sensitive or insensitive depending on the value of the case_sensitive_like pragma. (source pragma.html, checked-by: th3/req1/pragma10.test)
So, in the example above, if the query were rewritten as: SELECT z FROM ex2 WHERE +x=5 AND y=6; The + operator on the x column will prevent that term from constraining an index. This would force the use of the ex2i2 index. (source optoverview.html)
If a single column-name appears more than once in the list of assignment expressions, all but the rightmost occurrence is ignored. (source lang_update.html, checked-by: slt/slt_lang_update.test, tcl/e_update.test)
The only difference between the following two CASE expressions is that the x expression is evaluated exactly once in the first example but might be evaluated multiple times in the second: CASE x WHEN w1 THEN r1 WHEN w2 THEN r2 ELSE r3 END CASE WHEN x=w1 THEN r1 WHEN x=w2 THEN r2 ELSE r3 END (source lang_expr.html, checked-by: tcl/e_expr.test)
Values stored in sqlite3_value objects can be integers, floating point values, strings, BLOBs, or NULL. (source c3ref/value.html, checked-by: th3/req1/value01.test)
The xCreate and xConnect methods of a virtual table module call this interface to declare the format (the names and datatypes of the columns) of the virtual tables they implement. (source c3ref/declare_vtab.html, checked-by: th3/req1/vtab01.test)
The first argument to the callback is a copy of the third argument to sqlite3_update_hook(). (source c3ref/update_hook.html)
The INDEXED BY and NOT INDEXED clauses are not supported for UPDATE and DELETE statements. (source lang_createtrigger.html)
The names returned are the original un-aliased names of the database, table, and column. (source c3ref/column_database_name.html)
If the main database is ":memory:" or if the journal_mode is WAL, then transactions continue to be atomic within each individual database file. But if the host computer crashes in the middle of a COMMIT where two or more database files are updated, some of those files might get the changes where others might not. (source lang_attach.html, checked-by: th3/req1/attach02.test)
If the result is a UTF-8 string, then sqlite3_column_bytes16() converts the string to UTF-16 and then returns the number of bytes. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
If the threading mode is Single-thread or Multi-thread then this routine returns a NULL pointer. (source c3ref/db_mutex.html, checked-by: th3/req1/dbmutex01.test)
If X is numeric then length(X) returns the length of a string representation of X. (source lang_corefunc.html, checked-by: th3/cov1/func01.test)
The "weekday" modifier advances the date forward to the next date where the weekday number is N. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
The "unixepoch" modifier (11) only works if it immediately follows a timestring in the DDDDDDDDDD format. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
Shared-cache locks are released when a database connection concludes its current transaction, either by committing it or rolling it back. (source c3ref/unlock_notify.html)
The pointers returned are valid until a type conversion occurs as described above, or until sqlite3_step() or sqlite3_reset() or sqlite3_finalize() is called. (source c3ref/column_blob.html, checked-by: th3/req1/column03.test)
The number of columns in each row returned by the SELECT statement (if any) and the specific values returned have no effect on the results of the EXISTS operator. (source lang_expr.html, checked-by: tcl/e_expr.test)
For example: -- Database schema CREATE TABLE parent(x PRIMARY KEY); CREATE TABLE child(y REFERENCES parent ON UPDATE SET NULL); sqlite> SELECT * FROM parent; x ---- key sqlite> SELECT * FROM child; y ---- key sqlite> -- Since the following UPDATE statement does not actually modify sqlite> -- the parent key value, the ON UPDATE action is not performed and sqlite> -- the child key value is not set to NULL. sqlite> UPDATE parent SET x = 'key'; sqlite> SELECT IFNULL(y, 'null') FROM child; y ---- key sqlite> -- This time, since the UPDATE statement does modify the parent key sqlite> -- value, the ON UPDATE action is performed and the child key is set sqlite> -- to NULL. sqlite> UPDATE parent SET x = 'key2'; sqlite> SELECT IFNULL(y, 'null') FROM child; y ---- null (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys20.test)
The sqlite3_wal_autocheckpoint() interface and the wal_autocheckpoint pragma can be used to cause this interface to be run whenever the WAL reaches a certain size threshold. (source c3ref/wal_checkpoint.html)
The sqlite3_libversion_number() function returns an integer equal to SQLITE_VERSION_NUMBER. (source c3ref/libversion.html, checked-by: src/main.c, th3/mkth3.tcl)
A string constant is formed by enclosing the string in single quotes ('). (source lang_expr.html, checked-by: tcl/e_expr.test)
The value returned by sqlite3_memory_highwater(1) is the high-water mark prior to the reset. (source c3ref/memory_highwater.html)
Columns in the result set include the column name, data type, whether or not the column can be NULL, and the default value for the column. (source pragma.html, checked-by: th3/req1/pragma15.test)
Foreign key constraints are immediate by default. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys12.test)
When the locking_mode pragma specifies a particular database, for example: PRAGMA main.locking_mode=EXCLUSIVE; Then the locking mode applies only to the named database. (source pragma.html, checked-by: th3/req1/pragma04.test)
An uncorrelated subquery is evaluated only once and the result reused as necessary. (source lang_expr.html)
The BEFORE or AFTER keyword determines when the trigger actions will be executed relative to the insertion, modification or removal of the associated row. (source lang_createtrigger.html, checked-by: slt/slt_lang_createtrigger.test)
The ATTACH DATABASE statement adds another database file to the current database connection. (source lang_attach.html, checked-by: th3/req1/attach01.test)
But for the static mutex types, the same mutex is returned on every call that has the same type number. (source c3ref/mutex_alloc.html)
Ifnull() must have exactly 2 arguments. (source lang_corefunc.html, checked-by: th3/cov1/func01.test)
Registering a NULL function disables the callback. (source c3ref/commit_hook.html)
If X is the integer -9223372036854775807 then abs(X) throws an integer overflow error since there is no equivalent positive 64-bit two complement value. (source lang_corefunc.html, checked-by: src/func.c, th3/cov1/func01.test)
The column from the dataset on the left-hand side of the join operator is considered to be on the left-hand side of the comparison operator (=) for the purposes of collation sequence and affinity precedence. (source lang_select.html, checked-by: tcl/e_select.test)
When SQLite compares two strings, it uses a collating sequence or collating function (two words for the same thing) to determine which string is greater or if the two strings are equal. (source datatype3.html, checked-by: th3/req1/datatype3_09.test)
The upper(X) function returns a copy of input string X in which all lower-case ASCII characters are converted to their upper-case equivalent. (source lang_corefunc.html, checked-by: th3/cov1/func04.test)
The ROLLBACK will fail with an error code SQLITE_BUSY if there are any pending queries. (source lang_transaction.html)
In first form, if the main database has already been created, then this pragma returns the text encoding used by the main database, one of "UTF-8", "UTF-16le" (little-endian UTF-16 encoding) or "UTF-16be" (big-endian UTF-16 encoding). (source pragma.html, checked-by: th3/req1/pragma16.test)
When a new database is created, SQLite assigned a default page size based on information received from the xSectorSize and xDeviceCharacteristics methods of the sqlite3_io_methods object of the newly created database file. (source pragma.html)
C-style comments begin with "/*" and extend up to and including the next "*/" character pair or until the end of input, whichever comes first. (source lang_comment.html, checked-by: th3/req1/comment01.test)
If N or iOffset is less than zero, SQLITE_ERROR is returned and no data is read. (source c3ref/blob_read.html, checked-by: th3/cov1/vdbeblob01.test)
The sqlite3_errmsg() or sqlite3_errmsg16() routines can be used to obtain an English language description of the error following a failure of any of the sqlite3_open() routines. (source c3ref/open.html)
This option takes a single argument which is a pointer to an sqlite3_pcache_methods2 object. SQLite copies of the current page cache implementation into that object. (source c3ref/c_config_getmalloc.html)
The result of the expression is the value of the only column in the first row returned by the SELECT statement. (source lang_expr.html, checked-by: tcl/e_expr.test)
Only a single progress handler may be defined at one time per database connection; setting a new progress handler cancels the old one. (source c3ref/progress_handler.html, checked-by: th3/req1/progress01.test)
Nor is the update hook invoked when rows are deleted using the truncate optimization. (source c3ref/update_hook.html)
The default journal size limit is -1 (no limit). (source pragma.html, checked-by: th3/req1/pragma26.test)
If URI filename interpretation is enabled, and the filename argument begins with "file:", then the filename is interpreted as a URI. (source c3ref/open.html, checked-by: tcl/e_uri.test)
However if an ON CONFLICT clause is specified as part of the statement causing the trigger to fire, then conflict handling policy of the outer statement is used instead. (source lang_createtrigger.html)
This interface is used to retrieve runtime status information about a single database connection. (source c3ref/db_status.html, checked-by: th3/req1/dbstatus01.test)
For the index above and WHERE clause like this: ... WHERE b IN (1,2,3) AND c NOT NULL AND d='hello' The index is not usable at all because the left-most column of the index (column "a") is not constrained. (source optoverview.html)
If SQLite has not been initialized using sqlite3_initialize() prior to invoking sqlite3_complete16() then sqlite3_initialize() is invoked automatically by sqlite3_complete16(). If that initialization fails, then the return value from sqlite3_complete16() will be non-zero regardless of whether or not the input SQL is complete. (source c3ref/complete.html, checked-by: th3/cov1/complete01.test)
The parent key definitions of foreign key constraints are not checked when a table is created. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys21.test)
If no column-list is specified then the number of values must be the same as the number of columns in the table. (source lang_insert.html, checked-by: tcl/e_insert.test)
SQLite implements this interface by calling the xSleep() method of the default sqlite3_vfs object. (source c3ref/sleep.html, checked-by: th3/req1/sleep01.test)
The behavior is undefined if the mutex is not currently entered by the calling thread or is not currently allocated. SQLite will never do either. (source c3ref/mutex_alloc.html, checked-by: th3/mkth3.tcl)
The usual INSERT, UPDATE, and DELETE commands work on an R*Tree index just like on regular tables. (source rtree.html)
The INDEXED BY phrase always follows the name of a table that SQLite will be reading. (source lang_indexedby.html)
The scalar expressions may refer to columns of the row being updated. (source lang_update.html, checked-by: slt/slt_lang_update.test, tcl/e_update.test)
All mathematical operators (+, -, *, /, %, <<, >>, &, and |) cast both operands to the NUMERIC storage class prior to being carried out. (source datatype3.html, checked-by: th3/req1/datatype3_06.test)
If a result expression is the special expression "*" then all columns in the input data are substituted for that one expression. (source lang_select.html, checked-by: tcl/e_select.test)
In that case, the database connection remains in EXCLUSIVE mode as long as the journal mode is WAL; attempts to change the locking mode using "PRAGMA locking_mode=NORMAL;" are no-ops. (source wal.html, checked-by: th3/req1/pragma05.test)
If one or more ON INSERT, ON DELETE or ON UPDATE triggers are defined on a view, then it is not an error to execute an INSERT, DELETE or UPDATE statement on the view, respectively. (source lang_createtrigger.html)
SQLite will always use the table b-tree key rather than the NULL value when referencing the INTEGER PRIMARY KEY column. (source fileformat2.html)
SQLITE_STATUS_PAGECACHE_USED This parameter returns the number of pages used out of the pagecache memory allocator that was configured using SQLITE_CONFIG_PAGECACHE. The value returned is in pages, not in bytes. (source c3ref/c_status_malloc_count.html)
A string might look like a floating-point literal with a decimal point and/or exponent notation but as long as the value can be expressed as an integer, the NUMERIC affinity will convert it into an integer. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
The value returned by sqlite3_backup_finish is SQLITE_OK if no sqlite3_backup_step() errors occurred, regardless or whether or not sqlite3_backup_step() completed. (source c3ref/backup_finish.html)
Transactions can be started manually using the BEGIN command. (source lang_transaction.html)
The arguments can be just about any text as long as it has balanced parentheses. (source lang_createvtab.html)
The sqlite3_snprintf() routine is similar to "snprintf()" from the standard C library. The result is written into the buffer supplied as the second parameter whose size is given by the first parameter. Note that the order of the first two parameters is reversed from snprintf(). (source c3ref/mprintf.html, checked-by: th3/req1/malloc01.test)
The secure-delete setting for newly attached databases is the setting of the main database at the time the ATTACH command is evaluated. (source pragma.html, checked-by: th3/cov1/pragma20.test, th3/cov1/pragma21.test)
Note that the name length limit is in UTF-8 bytes, not characters nor UTF-16 bytes. (source c3ref/create_function.html, checked-by: th3/req1/createfunc01.test)

(source lang_select.html, checked-by: tcl/e_select.test)
The third through sixth parameters to the callback are zero-terminated strings that contain additional details about the action to be authorized. (source c3ref/set_authorizer.html)
Strings with embedded NUL characters cannot be represented as string literals in SQL and hence the returned string literal is truncated prior to the first NUL. (source lang_corefunc.html)
In other words, the database-name. prefix on the table name is not allowed within triggers. (source lang_delete.html, checked-by: tcl/e_delete.test)
In many pragmas, the argument is a boolean. The boolean can be one of: 1 yes true on0 no false off (source pragma.html, checked-by: th3/req1/pragma01.test)
On the other hand, the virtual terms themselves never causes tests to be performed on input rows. (source optoverview.html)
SQLite guarantees that the zFilename parameter to xOpen is either a NULL pointer or string obtained from xFullPathname() with an optional suffix added. (source c3ref/vfs.html, checked-by: th3/cov1/pager25.test, th3/mkth3.tcl)
When faced with the choice of using an index to satisfy WHERE clause constraints or satisfying an ORDER BY clause, SQLite does the same work analysis described above and chooses the index that it believes will result in the fastest answer. (source optoverview.html)
If the fifth argument has the value SQLITE_TRANSIENT, then SQLite makes its own private copy of the data immediately, before the sqlite3_bind_*() routine returns. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
The ATTACH and DETACH statements also cause sqlite3_stmt_readonly() to return true since, while those statements change the configuration of a database connection, they do not make changes to the content of the database files on disk. (source c3ref/stmt_readonly.html, checked-by: th3/cov1/vdbeapi14.test)
Nor does REPLACE increment the change counter. (source lang_conflict.html, checked-by: th3/req1/conflict02.test)
The available modifiers are as follows. NNN days NNN hours NNN minutes NNN.NNNN seconds NNN months NNN years start of month start of year start of day weekday N unixepoch localtime utc (source lang_datefunc.html, checked-by: th3/req1/date01.test)
Similarly, if URI filenames are not recognized when the database connection is first opened, they will not be recognized by ATTACH. (source uri.html)
The declared type of each column is determined by the expression affinity of the corresponding expression in the result set of the SELECT statement, as follows: Expression Affinity Column Declared Type TEXT "TEXT" NUMERIC "NUM" INTEGER "INT" REAL "REAL" NONE "" (empty string) (source lang_createtable.html, checked-by: tcl/e_createtable.test)
A call to this routine stores N bytes of randomness into buffer P. (source c3ref/randomness.html)
For conversions between TEXT and REAL storage classes, SQLite considers the conversion to be lossless and reversible if the first 15 significant decimal digits of the number are preserved. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
Compute the current unix timestamp. SELECT strftime('%s','now'); (source lang_datefunc.html, checked-by: th3/req1/date01.test)
All these names are aliases for one another and work equally well in any context. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
If the DELETE statement has no ORDER BY clause, then all rows that would be deleted in the absence of the LIMIT clause are assembled in an arbitrary order before applying the LIMIT and OFFSET clauses to determine the subset that are actually deleted. (source lang_delete.html, checked-by: tcl/e_delete.test)
/* Add a table named 't1' to the temp, main and an attached database */ ATTACH 'file.db' AS aux; CREATE TABLE t1(x, y); CREATE TEMP TABLE t1(x, y); CREATE TABLE aux.t1(x, y); DROP TABLE t1; /* Drop table in temp database */ DROP TABLE t1; /* Drop table in main database */ DROP TABLE t1; /* Drop table in aux database */ (source lang_naming.html, checked-by: tcl/e_resolve.test)
The column may not have a default value of CURRENT_TIME, CURRENT_DATE, CURRENT_TIMESTAMP, or an expression in parentheses. (source lang_altertable.html, checked-by: th3/req1/altertable01.test)
If the base expression is NULL then the result of the CASE is always the result of evaluating the ELSE expression if it exists, or NULL if it does not. (source lang_expr.html, checked-by: tcl/e_expr.test)
The sqlite3_result_double() interface sets the result from an application-defined function to be a floating point value specified by its 2nd argument. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
The index value returned is suitable for use as the second parameter to sqlite3_bind(). (source c3ref/bind_parameter_index.html, checked-by: th3/req1/bind03.test)
Each SCAN or SEARCH record includes the following information: The name of the table data is read from. Whether or not an index or automatic index is used. Whether or not the covering index optimization applies. Which terms of the WHERE clause are used for indexing. The estimated number of rows that SQLite will visit. (source eqp.html, checked-by: th3/req1/eqp01.test)
Either modification causes the SQL statement to behave as a query and to return information about how the SQL statement would have operated if the EXPLAIN keyword or phrase had been omitted. (source lang_explain.html)
Abs(X) returns NULL if X is NULL. (source lang_corefunc.html, checked-by: src/func.c, th3/cov1/func01.test)
The size of the reserved region is determined by the one-byte unsigned integer found at an offset of 20 into the database file header. (source fileformat2.html)
A value of 1 means UTF-8. (source fileformat2.html)
This interfaces opens a handle to the BLOB located in row iRow, column zColumn, table zTable in database zDb; in other words, the same BLOB that would be selected by: SELECT zColumn FROM zDb.zTable WHERE rowid = iRow; (source c3ref/blob_open.html)
Use the sqlite3_blob_bytes() interface to determine the size of the opened blob. (source c3ref/blob_open.html)
If a COMMIT statement (or the RELEASE of a transaction SAVEPOINT) fails because the database is currently in a state that violates a deferred foreign key constraint and there are currently nested savepoints, the nested savepoints remain open. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys15.test)
For a table or view, the tbl_name column is a copy of the name column. (source fileformat2.html)
Any %HH escape sequences in the query parameters are resolved prior to being appended to the xOpen filename. (source uri.html)
The SQLITE_CONFIG_LOG option takes two arguments: a pointer to a function with a call signature of void(*)(void*,int,const char*), and a pointer to void. (source c3ref/c_config_getmalloc.html)
Note that triggers are automatically dropped when the associated table is dropped. (source lang_droptrigger.html, checked-by: slt/slt_lang_droptrigger.test, tcl/e_droptrigger.test)
Compute the number of seconds since a particular moment in 2004: SELECT strftime('%s','now') - strftime('%s','2004-01-01 02:34:56'); (source lang_datefunc.html, checked-by: th3/req1/date01.test)
Once an encoding has been set for a database, it cannot be changed. (source pragma.html, checked-by: th3/req1/pragma16.test)
The sqlite_version() function returns the version string for the SQLite library that is running. (source lang_corefunc.html, checked-by: th3/req1/func04.test)
The MATCH operator is a special syntax for the match() application-defined function. (source lang_expr.html, checked-by: tcl/e_expr.test)
The difference between the effect of a RESTRICT action and normal foreign key constraint enforcement is that the RESTRICT action processing happens as soon as the field is updated - not at the end of the current statement as it would with an immediate constraint, or at the end of the current transaction as it would with a deferred constraint. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys16.test)
VACUUM only works on the main database. It is not possible to VACUUM an attached database file. (source lang_vacuum.html, checked-by: tcl/e_vacuum.test)
At most integer errors will be reported before the analysis quits. (source pragma.html)
An implicit transaction (a transaction that is started automatically, not a transaction started by BEGIN) is committed automatically when the last active statement finishes. A statement finishes when its prepared statement is reset or finalized. An open sqlite3_blob used for incremental BLOB I/O counts as an unfinished statement. The sqlite3_blob finishes when it is closed. (source lang_transaction.html)
In other words, calls to xUnpin() on a cache with bPurgeable set to false will always have the "discard" flag set to true. (source c3ref/pcache_methods2.html)
The maximum parameter number is set at compile-time by the SQLITE_MAX_VARIABLE_NUMBER macro. (source lang_expr.html)
The sqlite3_wal_autocheckpoint(D,N) is a wrapper around sqlite3_wal_hook() that causes any database on database connection D to automatically checkpoint after committing a transaction if there are N or more frames in the write-ahead log file. (source c3ref/wal_autocheckpoint.html)
In a database with ptrmap pages, the first ptrmap page is page 2. (source fileformat2.html)
The sqlite3_load_extension() interface returns SQLITE_OK on success and SQLITE_ERROR if something goes wrong. (source c3ref/load_extension.html)
If no unused ROWID can be found after a reasonable number of attempts, the insert operation fails with an SQLITE_FULL error. (source autoinc.html, checked-by: src/vdbe.c, th3/cov1/vdbe23.test)

(source pragma.html, checked-by: th3/req1/pragma01.test)
"SEARCH" indicates that only a subset of the table rows are visited. (source eqp.html, checked-by: th3/req1/eqp01.test)
If the filename is ":memory:", then a private, temporary in-memory database is created for the connection. (source c3ref/open.html)
The VFS is required to either truncate or zero the header of the wal-index when the last connection to it closes. (source fileformat2.html)
After at least "ms" milliseconds of sleeping, the handler returns 0 which causes sqlite3_step() to return SQLITE_BUSY or SQLITE_IOERR_BLOCKED. (source c3ref/busy_timeout.html)
Prior savepoints, even savepoints with matching savepoint-names, are unchanged. (source lang_savepoint.html)
This option takes a single argument which is a pointer to an instance of the sqlite3_mem_methods structure. The sqlite3_mem_methods structure is filled with the currently defined memory allocation routines. (source c3ref/c_config_getmalloc.html)
SQLite attempts to use an index to satisfy the ORDER BY clause of a query when possible. (source optoverview.html)
Hence explicitly specifying FOR EACH ROW is optional. (source lang_createtrigger.html)
The subquery does not use aggregates or the outer query does not use LIMIT. (source optoverview.html)
If the action code is SQLITE_READ and the callback returns SQLITE_IGNORE then the prepared statement statement is constructed to substitute a NULL value in place of the table column that would have been read if SQLITE_OK had been returned. (source c3ref/set_authorizer.html)
For TEMP tables, the database name is "temp". (source c3ref/blob_open.html)
The number of system calls for filesystem operations is reduced, possibly resulting in a small performance increase. (source pragma.html, checked-by: th3/req1/pragma05.test)
If it is not NULL, SQLite will invoke the destructor function given by the 4th parameter to sqlite3_set_auxdata() on the metadata when the corresponding function parameter changes or when the SQL statement completes, whichever comes first. (source c3ref/get_auxdata.html)
As with all other SQLite APIs, those whose names end with "16" return UTF-16 encoded strings and the other functions return UTF-8. (source c3ref/column_database_name.html)
If a table contains a column of type INTEGER PRIMARY KEY, then that column becomes an alias for the ROWID. (source autoinc.html, checked-by: th3/req1/autoinc01.test)
A call to xRelease(X,M) invalidates all savepoints where N>=M. (source vtab.html)
An UPDATE statement is used to modify a subset of the values stored in zero or more rows of the database table identified by the qualified-table-name specified as part of the UPDATE statement. (source lang_update.html, checked-by: slt/slt_lang_update.test, tcl/e_update.test)
The quote(X) function returns the text of an SQL literal which is the value of its argument suitable for inclusion into an SQL statement. (source lang_corefunc.html, checked-by: th3/cov1/func02.test)
If the query string is present, then all query parameters are passed through into the xOpen method of the underlying VFS. (source uri.html)
The first parameter to the authorizer callback is a copy of the third parameter to the sqlite3_set_authorizer() interface. (source c3ref/set_authorizer.html)
If the value N is out of range or if the N-th parameter is nameless, then NULL is returned. (source c3ref/bind_parameter_name.html, checked-by: th3/req1/bind04.test)
In a CASE with a base expression, the base expression is evaluated just once and the result is compared against the evaluation of each WHEN expression from left to right. (source lang_expr.html, checked-by: tcl/e_expr.test)
The "NOT INDEXED" clause specifies that no index shall be used when accessing the preceding table, including implied indices create by UNIQUE and PRIMARY KEY constraints. However, the INTEGER PRIMARY KEY can still be used to look up entries even when "NOT INDEXED" is specified. (source lang_indexedby.html)
Calling sqlite3_exec() or sqlite3_step() recursively does not create a new trigger context. (source c3ref/changes.html)
This error code promotion forces an automatic rollback of the changes. (source c3ref/busy_handler.html)
As of SQLite version 3.1, an alternative to using the VACUUM command to reclaim space after data has been deleted is auto-vacuum mode, enabled using the auto_vacuum pragma. (source lang_vacuum.html, checked-by: tcl/e_vacuum.test)
Operators IS and IS NOT have the same precedence as =. (source lang_expr.html, checked-by: tcl/e_expr.test)
When a SAVEPOINT is the outer-most savepoint and it is not within a BEGIN...COMMIT then the behavior is the same as BEGIN DEFERRED TRANSACTION. (source lang_savepoint.html)
sqlite> CREATE INDEX i4 ON t2(c); sqlite> EXPLAIN QUERY PLAN SELECT c, d FROM t2 ORDER BY c; 0|0|0|SCAN TABLE t2 USING INDEX i4 (~1000000 rows) (source eqp.html, checked-by: tcl/eqp.test)
The total_changes() function returns the number of row changes caused by INSERT, UPDATE or DELETE statements since the current database connection was opened. (source lang_corefunc.html, checked-by: th3/cov1/func05.test)
Note that a declared type of "FLOATING POINT" would give INTEGER affinity, not REAL affinity, due to the "INT" at the end of "POINT". (source datatype3.html, checked-by: th3/req1/datatype3_02.test)
If the optional ESCAPE clause is present, then the like() function is invoked with three arguments. (source lang_corefunc.html, checked-by: th3/req1/func02.test)
NOCASE does not implement a general purpose unicode caseless comparison. (source fileformat2.html)
The szExtra parameter will a number less than 250. (source c3ref/pcache_methods2.html)
sqlite> CREATE INDEX i3 ON t1(b); sqlite> EXPLAIN QUERY PLAN SELECT * FROM t1 WHERE a=1 OR b=2; 0|0|0|SEARCH TABLE t1 USING COVERING INDEX i2 (a=?) (~10 rows) 0|0|0|SEARCH TABLE t1 USING INDEX i3 (b=?) (~10 rows) (source eqp.html, checked-by: tcl/eqp.test)
The result of the CASE expression is the evaluation of the THEN expression that corresponds to the first WHEN expression that evaluates to true. (source lang_expr.html, checked-by: tcl/e_expr.test)
The COLLATE clause of the column definition is used to define alternative collating functions for a column. (source datatype3.html, checked-by: th3/req1/datatype3_09.test)
The second form attempts to modify the maximum page count. (source pragma.html, checked-by: th3/req1/pragma12.test)
If M is -1 in the initial journal header, then the number of page records that follow is computed by computing how many page records will fit in the available space of the remainder of the journal file. (source fileformat2.html)
The third argument to xCreate(), bPurgeable, is true if the cache being created will be used to cache database pages of a file stored on disk, or false if it is used for an in-memory database. (source c3ref/pcache_methods2.html)
The sqlite3_value object returned by sqlite3_column_value() is unprotected. (source c3ref/value.html, checked-by: th3/req1/value01.test)
The s1 value spans all 32-bit integer terms of the sequence whereas s0 omits the final term. (source fileformat2.html)
If an INSERT or UPDATE statement attempts to modify the table content so that two or more rows feature identical primary key values, it is a constraint violation. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
On a cache where bPurgeable is false, SQLite will never invoke xUnpin() except to deliberately delete a page. (source c3ref/pcache_methods2.html, checked-by: th3/mkth3.tcl)
Each SQL index, whether explicitly declared via a CREATE INDEX statement or implied by a UNIQUE constraint, corresponds to an index b-tree in the database file. (source fileformat2.html)
The sqlite3_mutex_leave() routine exits a mutex that was previously entered by the same thread. (source c3ref/mutex_alloc.html)
The string literal must not begin with a wildcard; if the right-hand side begins with a wildcard character then this optimization is attempted. (source optoverview.html)
If no matching expression can be found in the result columns of any constituent SELECT, it is an error. (source lang_select.html, checked-by: tcl/e_select.test)
PRAGMA page_count; Return the total number of pages in the database file. (source pragma.html, checked-by: th3/req1/pragma12.test)
If write-ahead log is disabled, this pragma is a harmless no-op. (source pragma.html)
The order of values in the record is the same as the order of columns in the SQL table definition. (source fileformat2.html)

(source lang_expr.html)
The subquery does not use LIMIT or the outer query does not use aggregates. (source optoverview.html)
For example: X'53514C697465' (source lang_expr.html, checked-by: tcl/e_expr.test)
These routines open an SQLite database file as specified by the filename argument. (source c3ref/open.html)
In a compound SELECT, all the constituent SELECTs must return the same number of result columns. (source lang_select.html, checked-by: tcl/e_select.test)
An application-defined function is permitted to call other SQLite interfaces. (source c3ref/create_function.html, checked-by: th3/req1/createfunc06.test)
The infix GLOB operator is implemented by calling the function glob(Y,X) and can be modified by overriding that function. (source lang_expr.html, checked-by: tcl/e_expr.test)
The filename argument sqlite3_open16() is converted from UTF16 native byte order into UTF8 prior to processing. (source uri.html)
To convert the results of an SQL expression to a boolean value, SQLite first casts the result to a NUMERIC value in the same way as a CAST expression. A NULL or zero value (integer value 0 or real value 0.0) is considered to be false. All other values are considered true. (source lang_expr.html)
The return value from sqlite3_column_blob() for a zero-length BLOB is a NULL pointer. (source c3ref/column_blob.html, checked-by: th3/req1/column01.test)
The first time the database is written, an exclusive lock is obtained and held. (source pragma.html, checked-by: th3/req1/pragma04.test)
The progress handler is also disabled by setting N to a value less than 1. (source c3ref/progress_handler.html, checked-by: th3/req1/progress01.test)
The sqlite_compileoption_used() SQL function is a wrapper around the sqlite3_compileoption_used() C/C++ function. (source lang_corefunc.html, checked-by: src/func.c, th3/cov1/ctime02.test)
The SQLITE_FCNTL_OVERWRITE opcode is invoked by SQLite after opening a write transaction to indicate that, unless it is rolled back for some reason, the entire database file will be overwritten by the current transaction. (source c3ref/c_fcntl_chunk_size.html)
This pragma sets or queries the database connection locking-mode. (source pragma.html, checked-by: th3/req1/pragma04.test)
When the WHERE is omitted from a DELETE statement and the table being deleted has no triggers, SQLite uses an optimization to erase the entire table content without having to visit each row of the table individually. (source lang_delete.html)
Both GLOB and LIKE may be preceded by the NOT keyword to invert the sense of the test. (source lang_expr.html, checked-by: tcl/e_expr.test)
If the page_size pragma is used to specify a new page size just prior to running the VACUUM command and if the database is not in WAL journal mode then VACUUM will change the page size to the new value. (source pragma.html)
A USING or ON clause may not be added to a join that specifies the NATURAL keyword. (source lang_select.html, checked-by: tcl/e_select.test)
Six static mutexes are used by the current version of SQLite. (source c3ref/mutex_alloc.html)
Deferred foreign key constraints are not checked until the transaction tries to COMMIT. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys12.test, th3/req1/foreignkeys14.test)
The sqlite3_commit_hook(D,C,P) and sqlite3_rollback_hook(D,C,P) functions return the P argument from the previous call of the same function on the same database connection D, or NULL for the first call for each function on D. (source c3ref/commit_hook.html)
It is not possible to change the text encoding of a database after it has been created and any attempt to do so will be silently ignored. (source pragma.html, checked-by: th3/req1/pragma16.test)

(source lang_createtrigger.html, checked-by: tcl/e_expr.test)
In this case the new table is created in the named database. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
If the transaction has already been rolled back automatically by the error response, then the ROLLBACK command will fail with an error, but no harm is caused by this. (source lang_transaction.html)
A comma (",") is used as the separator if Y is omitted. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
Note that calling sqlite3_busy_timeout() will also set or clear the busy handler. (source c3ref/busy_handler.html)
If SQLite is compiled with the SQLITE_ENABLE_UPDATE_DELETE_LIMIT compile-time option, then the syntax of the DELETE statement is extended by the addition of optional ORDER BY and LIMIT clauses: (source lang_delete.html, checked-by: tcl/e_delete.test)
SQLite ensures that *pzErrMsg is NULL before calling the xEntryPoint(). (source c3ref/auto_extension.html, checked-by: th3/req1/autoext01.test)
The BETWEEN operator is logically equivalent to a pair of comparisons. "x BETWEEN y AND z" is equivalent to "x>=y AND x<=z" except that with BETWEEN, the x expression is only evaluated once. (source lang_expr.html, checked-by: tcl/e_expr.test)
The estimatedCost value is an estimate of the cost of doing the particular lookup. (source c3ref/index_info.html)
PRAGMA writable_schema = boolean; When this pragma is on, the SQLITE_MASTER tables in which database can be changed using ordinary UPDATE, INSERT, and DELETE statements. (source pragma.html)
If SQLite is compiled with the SQLITE_ENABLE_STAT3 option, then additional histogram data is collected and stored in sqlite_stat3. (source lang_analyze.html, checked-by: th3/req1/analyze01.test)
If the mode option is set to "rw", then the database is opened for read-write (but not create) access, as if SQLITE_OPEN_READWRITE (but not SQLITE_OPEN_CREATE) had been set. (source c3ref/open.html, checked-by: tcl/e_uri.test)
The dropped table is completely removed from the database schema and the disk file. (source lang_droptable.html)
Therefore, auto-vacuuming must be turned on before any tables are created. (source pragma.html, checked-by: th3/req1/pragma07.test)
When this flag is on, new SQLite databases are created in a file format that is readable and writable by all versions of SQLite going back to 3.0.0. (source pragma.html, checked-by: th3/req1/pragma22.test)
The update hook is not invoked for rows that are deleted by the REPLACE conflict resolution strategy. (source lang_conflict.html, checked-by: th3/req1/conflict02.test)
If the 5th parameter to sqlite3_exec() is not NULL and no errors occur, then sqlite3_exec() sets the pointer in its 5th parameter to NULL before returning. (source c3ref/exec.html, checked-by: th3/req1/exec01.test)
Whenever the database schema changes, the statement must be reprepared. (source fileformat2.html)
If no COLLATE clause is specified, the default collation sequence is BINARY. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The LIKE optimization might occur if the column named on the left of the operator is indexed using the built-in BINARY collating sequence and case_sensitive_like is turned on. Or the optimization might occur if the column is indexed using the built-in NOCASE collating sequence and the case_sensitive_like mode is off. These are the only two combinations under which LIKE operators will be optimized. (source optoverview.html, checked-by: th3/cov1/where03.test)
BLOB values (even serial types 12 and larger) sort last and in the order determined by memcmp(). (source fileformat2.html)
When the callback is invoked, the first argument passed is a copy of the second argument to sqlite3_collation_needed() or sqlite3_collation_needed16(). The second argument is the database connection. The third argument is one of SQLITE_UTF8, SQLITE_UTF16BE, or SQLITE_UTF16LE, indicating the most desirable form of the collation sequence function required. The fourth parameter is the name of the required collation sequence. (source c3ref/collation_needed.html)
Autocommit mode is on by default. (source c3ref/get_autocommit.html)
The sqlite3_compileoption_used() function returns 0 or 1 indicating whether the specified option was defined at compile time. (source c3ref/compileoption_get.html)
These functions add, remove, or modify a collation associated with the database connection specified as the first argument. (source c3ref/create_collation.html, checked-by: th3/req1/createcoll01.test)
SQLite will also add one of the following flags to the xOpen() call, depending on the object being opened: SQLITE_OPEN_MAIN_DB SQLITE_OPEN_MAIN_JOURNAL SQLITE_OPEN_TEMP_DB SQLITE_OPEN_TEMP_JOURNAL SQLITE_OPEN_TRANSIENT_DB SQLITE_OPEN_SUBJOURNAL SQLITE_OPEN_MASTER_JOURNAL SQLITE_OPEN_WAL (source c3ref/vfs.html, checked-by: th3/mkth3.tcl)
SQLITE_DBSTATUS_CACHE_MISS This parameter returns the number of pager cache misses that have occurred. (source c3ref/c_dbstatus_options.html)
Columns that do not appear in the list of assignments are left unmodified. (source lang_update.html, checked-by: slt/slt_lang_update.test, tcl/e_update.test)
If SQLITE_IOERR_XXX, SQLITE_NOMEM, or SQLITE_READONLY is returned, then there is no point in retrying the call to sqlite3_backup_step(). These errors are considered fatal. (source c3ref/backup_finish.html)
This pragma returns the names of compile-time options used when building SQLite, one option per row. (source pragma.html, checked-by: th3/req1/pragma13.test)
For the purposes of this API, a transaction is said to have been rolled back if an explicit "ROLLBACK" statement is executed, or an error or constraint causes an implicit rollback to occur. (source c3ref/commit_hook.html)
No affinities are applied to any values as the result of a GROUP by clause. (source datatype3.html, checked-by: th3/req1/datatype3_07.test)
The result of avg() is NULL if and only if there are no non-NULL inputs. (source lang_aggfunc.html, checked-by: slt/slt_lang_aggfunc.test, th3/req1/aggfunc01.test)
For each affected row, the named columns are set to the values found by evaluating the corresponding scalar expressions. (source lang_update.html, checked-by: slt/slt_lang_update.test, tcl/e_update.test)
If used within a SELECT that uses the "query by rowid" or "linear scan" strategies, then the snippet and offsets both return an empty string, and the matchinfo function returns a blob value zero bytes in size. (source fts3.html, checked-by: tcl/fts3snippet.test)
sqlite> EXPLAIN QUERY PLAN SELECT a FROM t1 UNION SELECT c FROM t2; 1|0|0|SCAN TABLE t1 (~1000000 rows) 2|0|0|SCAN TABLE t2 (~1000000 rows) 0|0|0|COMPOUND SUBQUERIES 1 AND 2 USING TEMP B-TREE (UNION) (source eqp.html, checked-by: tcl/eqp.test)
Duplicate rows are removed from the results of INTERSECT and EXCEPT operators before the result set is returned. (source lang_select.html, checked-by: tcl/e_select.test)
However xMutexAlloc() may use SQLite memory allocation for a fast or recursive mutex. (source c3ref/mutex_methods.html)
Warning: misuse of this pragma can easily result in a corrupt database file. (source pragma.html)
The default encoding for the database will be UTF-8 if sqlite3_open() or sqlite3_open_v2() is called and UTF-16 in the native byte order if sqlite3_open16() is used. (source c3ref/open.html)
If no negative ROWID values are inserted explicitly, then automatically generated ROWID values will always be greater than zero. (source autoinc.html, checked-by: src/vdbe.c, th3/cov1/vdbe23.test)
One might, for example, want to query all objects that overlap with the 35th parallel: SELECT id FROM demo_index WHERE maxY>=35.0 AND minY (source rtree.html)
If foreign key constraints are enabled when a table is renamed, then any REFERENCES clauses in any table (either the table being renamed or some other table) that refer to the table being renamed are modified to refer to the renamed table by its new name. (source lang_altertable.html, checked-by: th3/req1/altertable01.test)
The fourth parameter to sqlite3_open_v2() is the name of the sqlite3_vfs object that defines the operating system interface that the new database connection should use. (source c3ref/open.html)
In those routines that have a fourth argument, its value is the number of bytes in the parameter. To be clear: the value is the number of bytes in the value, not the number of characters. (source c3ref/bind_blob.html, checked-by: th3/req1/bind01.test)
It is not permissible to add a WHERE clause or do any arithmetic on the result. (source optoverview.html)
Only an effective call of sqlite3_initialize() does any initialization. All other calls are harmless no-ops. (source c3ref/initialize.html)

(source lang_select.html, checked-by: tcl/e_select.test)
Another limitation of the histogram data is that it only applies to the left-most column on an index. (source optoverview.html)
The fifth byte through the last usable byte are used to hold overflow content. (source fileformat2.html)
The parameter P is passed through as the only parameter to the callback function X. (source c3ref/progress_handler.html, checked-by: th3/req1/progress01.test)
Otherwise, the affinity is NUMERIC. (source datatype3.html, checked-by: th3/req1/datatype3_01.test)
Autocheckpointing is enabled by default with an interval of 1000 or SQLITE_DEFAULT_WAL_AUTOCHECKPOINT. (source pragma.html)
The first (query) form will return the synchronous setting as an integer. (source pragma.html)
Parent and child keys must have the same cardinality. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys11.test)
If an error occurs while evaluating the SQL statements passed into sqlite3_exec(), then execution of the current statement stops and subsequent statements are skipped. (source c3ref/exec.html, checked-by: th3/req1/exec01.test)
The subquery does not use LIMIT or the outer query does not have a WHERE clause. (source optoverview.html)
Comments do not nest. (source lang_comment.html, checked-by: th3/req1/comment01.test)
When you change the cache size using the cache_size pragma, the change only endures for the current session. (source pragma.html, checked-by: th3/req1/pragma09.test)
Any command that changes the database (basically, any SQL command other than SELECT) will automatically start a transaction if one is not already in effect. (source lang_transaction.html)
If this parameter is -1, then the SQL function or aggregate may take any number of arguments between 0 and the limit set by sqlite3_limit(SQLITE_LIMIT_FUNCTION_ARG). (source c3ref/create_function.html, checked-by: th3/req1/createfunc02.test)
The default transaction behavior is deferred. (source lang_transaction.html)
The returned string is valid until the prepared statement is destroyed using sqlite3_finalize() or until the statement is automatically reprepared by the first call to sqlite3_step() for a particular run or until the same information is requested again in a different encoding. (source c3ref/column_database_name.html)
The 4th form changes the journaling mode for a specific database connection named. (source pragma.html, checked-by: th3/req1/pragma23.test)
This option sets the threading mode to Serialized. (source c3ref/c_config_getmalloc.html)
The multi-argument max() function searches its arguments from left to right for an argument that defines a collating function and uses that collating function for all string comparisons. (source lang_corefunc.html, checked-by: th3/req1/func03.test)

(source lang_select.html, checked-by: tcl/e_select.test)
If the third parameter to sqlite3_result_error() or sqlite3_result_error16() is non-negative then SQLite takes that many bytes (not characters) from the 2nd parameter as the error message. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
If the keywords PRIMARY KEY are added to a column definition, then the primary key for the table consists of that single column. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The WAL journaling mode uses a write-ahead log instead of a rollback journal to implement transactions. (source pragma.html, checked-by: th3/req1/pragma24.test)
The sqlite3_result_toobig() interface causes SQLite to throw an error indicating that a string or BLOB is too long to represent. (source c3ref/result_blob.html, checked-by: th3/req1/result01.test)
If the join-op is a "LEFT JOIN" or "LEFT OUTER JOIN", then after the ON or USING filtering clauses have been applied, an extra row is added to the output for each row in the original left-hand input dataset that corresponds to no rows at all in the composite dataset (if any). (source lang_select.html, checked-by: tcl/e_select.test)
When temp_store is DEFAULT (0), the compile-time C preprocessor macro SQLITE_TEMP_STORE is used to determine where temporary tables and indices are stored. (source pragma.html)
This can result in a table that contains data that is in violation of the CHECK constraint. (source lang_altertable.html, checked-by: th3/req1/altertable01.test)
Other integer type names like "INT" or "BIGINT" or "SHORT INTEGER" or "UNSIGNED INTEGER" causes the primary key column to behave as an ordinary table column with integer affinity and a unique index, not as an alias for the rowid. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The aConstraint[] array only reports WHERE clause terms that are relevant to the particular virtual table being queried. (source c3ref/index_info.html)
The leftmost column is number 0. (source c3ref/column_name.html)
If N is out of range, sqlite3_compileoption_get() returns a NULL pointer. (source c3ref/compileoption_get.html)
Every new database connection defaults to having the auto-checkpoint enabled with a threshold of 1000 or SQLITE_DEFAULT_WAL_AUTOCHECKPOINT pages. (source c3ref/wal_autocheckpoint.html)
The sqlite3_db_filename(D,N) interface returns a pointer to a filename associated with database N of connection D. (source c3ref/db_filename.html, checked-by: th3/cov1/attach04.test)
The filename returned by this function is the output of the xFullPathname method of the VFS. (source c3ref/db_filename.html, checked-by: th3/cov1/attach04.test)
No regexp() user function is defined by default and so use of the REGEXP operator will normally result in an error message. (source lang_expr.html, checked-by: tcl/e_expr.test)
The format string supports the most common substitutions found in the strftime() function from the standard C library plus two new substitutions, %f and %J. (source lang_datefunc.html, checked-by: th3/req1/date01.test)
Subverting this mechanism by using "PRAGMA schema_version" to modify the schema-version is potentially dangerous and may lead to program crashes or database corruption. (source pragma.html, checked-by: th3/req1/pragma28.test)
Any SQL statement variables that had values bound to them using the sqlite3_bind_*() API retain their values. (source c3ref/reset.html, checked-by: th3/req1/clearbind01.test)
SQLITE_LIMIT_ATTACHED The maximum number of attached databases. (source c3ref/c_limit_attached.html, checked-by: th3/req1/limit02.test)
Tip: If the command "PRAGMA foreign_keys" returns no data instead of a single row containing "0" or "1", then the version of SQLite you are using does not support foreign keys (either because it is older than 3.6.19 or because it was compiled with SQLITE_OMIT_FOREIGN_KEY or SQLITE_OMIT_TRIGGER defined). (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys05.test)
These three ways of committing a transaction correspond to the DELETE, TRUNCATE, and PERSIST settings, respectively, of the journal_mode pragma. (source fileformat2.html)
This option takes a single argument which is a pointer to an instance of the sqlite3_mutex_methods structure. The argument specifies alternative low-level mutex routines to be used in place the mutex routines built into SQLite. (source c3ref/c_config_getmalloc.html)
If the interrupted SQL operation is an INSERT, UPDATE, or DELETE that is inside an explicit transaction, then the entire transaction will be rolled back automatically. (source c3ref/interrupt.html)
If the SELECT yields more than one result row, all rows after the first are ignored. (source lang_expr.html, checked-by: tcl/e_expr.test)
The sqlite3_value_text16be() and sqlite3_value_text16le() interfaces extract UTF-16 strings as big-endian and little-endian respectively. (source c3ref/value_blob.html, checked-by: th3/req1/value02.test, th3/req1/value03.test)
Serial Type Codes Of The Record Format Serial TypeContent SizeMeaning 00 NULL 11 8-bit twos-complement integer 22 Big-endian 16-bit twos-complement integer 33 Big-endian 24-bit twos-complement integer 44 Big-endian 32-bit twos-complement integer 56 Big-endian 48-bit twos-complement integer 68 Big-endian 64-bit twos-complement integer 78 Big-endian IEEE 754-2008 64-bit floating point number 80 Integer constant 0. Only available for schema format 4 and higher. 90 Integer constant 1. Only available for schema format 4 and higher. 10,11 Not used. Reserved for expansion. N≥12 and even (N-12)/2 A BLOB that is (N-12)/2 bytes in length N≥13 and odd (N-13)/2 A string in the database encoding and (N-13)/2 bytes in length. The nul terminator is omitted. (source fileformat2.html)
Use "main" for the main database (the database that was opened by the original sqlite3_open(), sqlite3_open16(), or sqlite3_open_v2() interface call) and use "temp" for database that holds TEMP tables. (source pragma.html, checked-by: th3/req1/pragma23.test)
If the application crashes in the middle of a transaction when the OFF journaling mode is set, then the database file will very likely go corrupt. (source pragma.html, checked-by: th3/req1/pragma25.test)
This pragma queries or sets the write-ahead log auto-checkpoint interval. (source pragma.html)
The DROP INDEX statement removes an index added with the CREATE INDEX statement. (source lang_dropindex.html, checked-by: slt/slt_lang_dropindex.test)
The default match() function implementation raises an exception and is not really useful for anything. (source lang_expr.html, checked-by: tcl/e_expr.test)
A subsequent call to xRollbackTo(X,R) means that the state of the virtual table should return to what it was when xSavepoint(X,R) was last called. (source vtab.html)
If the argument N is positive then the suggested cache size is set to N. (source pragma.html)
If no transaction is active (other than the implied transaction that is created on every command) then the ROLLBACK resolution algorithm works the same as the ABORT algorithm. (source lang_conflict.html, checked-by: th3/req1/conflict01.test)
Otherwise, the UPDATE affects only those rows for which the result of evaluating the WHERE clause expression as a boolean expression is true. (source lang_update.html, checked-by: slt/slt_lang_update.test, tcl/e_update.test)
The sqlite3_update_hook(D,C,P) function returns the P argument from the previous call on the same database connection D, or NULL for the first call on D. (source c3ref/update_hook.html)
Built-in functions may be overloaded by new application-defined functions. (source c3ref/create_function.html, checked-by: th3/req1/createfunc01.test, th3/req1/createfunc05.test)
The collating function callback is invoked with a copy of the pArg application data pointer and with two strings in the encoding specified by the eTextRep argument. (source c3ref/create_collation.html, checked-by: th3/req1/createcoll01.test)
In other words, if the pattern is like this: column LIKE x% column GLOB x* then the original LIKE or GLOB tests are disabled when the virtual terms constrain an index because in that case we know that all of the rows selected by the index will pass the LIKE or GLOB test. (source optoverview.html)
The call to xRollbackTo(X,R) will invalidate all savepoints with N>R; none of the invalided savepoints will be rolled back or released without first being reinitialized by a call to xSavepoint(). (source vtab.html)
The SQLITE_MAX_TRIGGER_DEPTH and SQLITE_LIMIT_TRIGGER_DEPTH settings determine the maximum allowable depth of trigger program recursion. For the purposes of these limits, foreign key actions are considered trigger programs. (source foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys24.test)
This routine sets a busy handler that sleeps for a specified amount of time when a table is locked. (source c3ref/busy_timeout.html)
If there is no explicit DEFAULT clause attached to a column definition, then the default value of the column is NULL. (source lang_createtable.html, checked-by: tcl/e_createtable.test)
The incremental_vacuum pragma has no effect if the database is not in auto_vacuum=incremental mode or if there are no pages on the freelist. (source pragma.html, checked-by: th3/req1/pragma21.test)
SQLITE_LIMIT_VARIABLE_NUMBER The maximum index number of any parameter in an SQL statement. (source c3ref/c_limit_attached.html, checked-by: th3/req1/limit02.test)
This option takes a single argument which is a pointer to an instance of the sqlite3_mutex_methods structure. The sqlite3_mutex_methods structure is filled with the currently defined mutex routines. (source c3ref/c_config_getmalloc.html)
If Z is not initially a string, it is cast to a UTF-8 string prior to processing. (source lang_corefunc.html, checked-by: th3/req1/func03.test)
If offset iOffset is less than N bytes from the end of the BLOB, SQLITE_ERROR is returned and no data is read. (source c3ref/blob_read.html, checked-by: th3/cov1/vdbeblob01.test)
The second integer in the array is the number of leaf page pointers to follow. (source fileformat2.html)
Tip: I