Small. Fast. Reliable.
Choose any three.

1.0 About SQLite Requirements

2.0 List Of Requirements

R-00013-61831-22423-62410-56475-12017-42000-15640

The key comes first and is separated from the value by a single "=" character. (source: uri.html, matrix: context, detail)

R-00090-24248-38638-40643-10159-25596-30389-07024

The third argument, aCoord[], is an array of nCoord coordinates that defines a bounding box to be tested. (source: rtree.html, matrix: context, detail)

R-00099-40772-25508-42886-05693-46370-34145-00683

Simply setting the locking-mode to NORMAL is not enough - locks are not released until the next time the database file is accessed. (source: pragma.html, checked-by: th3/req1/pragma04.test, matrix: context, detail)

R-00109-30887-26782-37306-11423-15179-45221-18025

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, matrix: context, detail)

R-00110-20874-52504-15299-56251-38354-26784-53834

SQLITE_TOOBIG might be returned if the size of a string or BLOB exceeds limits imposed by sqlite3_limit(SQLITE_LIMIT_LENGTH) or SQLITE_MAX_LENGTH. (source: c3ref/bind_blob.html, checked-by: th3/cov1/vdbeapi03.test, matrix: context, detail)

R-00140-37445-57377-20863-40395-21152-20469-25306

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, matrix: context, detail)

R-00171-59428-63637-20419-61024-28048-20428-49478

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, matrix: context, detail)

R-00197-14279-64967-54349-51250-28289-13484-05768

The rank of the column within the index. (0 means left-most. Key columns come before auxiliary columns.) (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15x.test, matrix: context, detail)

R-00202-17548-59772-16282-16027-29431-32424-58722

The outer query is not an aggregate or the subquery does not contain ORDER BY. (source: optoverview.html, matrix: context, detail)

R-00203-32193-54208-20071-18893-56924-36288-02453

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, matrix: context, detail)

R-00206-08174-12423-08291-28017-31720-33784-40037

Assuming there are no other indices, the query above would result in a full table scan. (source: optoverview.html, matrix: context, detail)

R-00217-01605-34207-18386-37017-37707-31164-60184

To create a WITHOUT ROWID table, simply add the keywords "WITHOUT ROWID" to the end of the CREATE TABLE statement. For example: CREATE TABLE IF NOT EXISTS wordcount( word TEXT PRIMARY KEY, cnt INTEGER ) WITHOUT ROWID; (source: withoutrowid.html, checked-by: tcl/without_rowid5.test, th3/cov1/withoutrowid01.test, matrix: context, detail)

R-00220-34634-35173-21345-54000-63909-52170-35980

Otherwise, an expression has no affinity. (source: datatype3.html, checked-by: th3/req1/datatype3_05.test, matrix: context, detail)

R-00227-21080-37302-15362-03285-23826-51380-28642

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, matrix: context, detail)

R-00243-07929-08239-44820-61576-27318-53216-12960

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, matrix: context, detail)

R-00279-52283-49814-15354-28909-18424-55374-18430

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, matrix: context, detail)

R-00293-64994-39339-33419-11494-64597-05681-15697

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, matrix: context, detail)

R-00311-09993-39149-44899-64441-18371-52816-22132

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, matrix: context, detail)

R-00336-65009-59389-29167-11927-65433-48801-33923

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, matrix: context, detail)

R-00353-01851-44275-08807-26330-41077-52452-65296

The subquery and outer query do not both use LIMIT. (source: optoverview.html, matrix: context, detail)

R-00359-41639-41144-27010-59632-30416-37191-53432

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, matrix: context, detail)

R-00373-55350-22476-46693-17788-34313-52165-34922

PRAGMA schema.default_cache_size; PRAGMA schema.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, matrix: context, detail)

R-00376-39212-00900-22873-65373-47922-05493-41094

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, matrix: context, detail)

R-00402-11496-45496-40393-08263-15231-62727-28991

The filename argument can be a URI filename if URI filename processing is enable on the database connection. (source: lang_attach.html, checked-by: th3/cov1/sharedcache03.test, matrix: context, detail)

R-00404-17670-59562-50305-44521-33242-04500-48832

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, matrix: context, detail)

R-00416-37972-26105-59380-00814-31989-13044-05972

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, matrix: context, detail)

R-00421-53597-33844-16365-55873-40811-64785-22587

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, matrix: context, detail)

R-00442-36377-32354-02929-33916-13547-05175-00922

The number of extra bytes needed by the page header can be determined using SQLITE_CONFIG_PCACHE_HDRSZ. (source: c3ref/c_config_covering_index_scan.html, checked-by: th3/cov1/main42.test, matrix: context, detail)

R-00449-33772-33919-59402-60829-28733-22208-04727

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: tcl/e_wal.test, th3/req1/pragma05.test, matrix: context, detail)

R-00466-56349-41436-38164-40851-28282-49107-17370

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, matrix: context, detail)

R-00515-56855-31188-51684-43616-15583-54594-04320

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, matrix: context, detail)

R-00576-15510-24475-53838-43505-45493-44918-44548

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, matrix: context, detail)

R-00598-03741-13790-05735-40657-11548-64969-46486

A negative LIMIT value is interpreted as "no limit". (source: lang_delete.html, checked-by: tcl/e_delete.test, matrix: context, detail)

R-00605-14249-27716-38234-38428-32294-04406-05104

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, matrix: context, detail)

R-00634-08585-41820-07623-11518-51863-15995-51786

If a schema name is specified as part of an object reference, it must be either "main", or "temp" or the schema-name of an attached database. (source: lang_naming.html, checked-by: tcl/e_resolve.test, matrix: context, detail)

R-00640-12624-18808-26941-05585-54150-12700-55718

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, matrix: context, detail)

R-00653-06026-13288-58570-29830-10892-52076-06124

If parameter zDb is NULL or points to a zero length string, then the specified operation is attempted on all WAL databases attached to database connection db. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, matrix: context, detail)

R-00693-36727-57706-32123-30185-00000-05163-54607

The legacy xGeom callback is invoked with four arguments. (source: rtree.html, matrix: context, detail)

R-00695-31519-05206-48434-15068-58741-03264-34333

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, matrix: context, detail)

R-00717-60341-45862-31619-05346-22343-41612-42650

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, matrix: context, detail)

R-00752-43975-33209-32622-59517-55856-49839-03222

The sqlite3_wal_hook() function is used to register a callback that is invoked each time data is committed to a database in wal mode. (source: c3ref/wal_hook.html, checked-by: tcl/e_walhook.test, matrix: context, detail)

R-00767-44770-16975-15707-27043-13440-51014-32740

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, matrix: context, detail)

R-00820-56127-32552-48001-55340-02932-17552-54138

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, matrix: context, detail)

R-00862-05326-51946-26490-09320-50697-05494-49603

If neither argument to nullif() defines a collating function then the BINARY is used. (source: lang_corefunc.html, checked-by: th3/req1/func03.test, matrix: context, detail)

R-00888-53115-42960-22822-38463-42827-06390-25797

The prefix option must be set to a comma separated list of positive non-zero integers. (source: fts3.html, matrix: context, detail)

R-00896-24328-65526-17085-61980-08171-20681-33021

The SQLITE_CONFIG_PAGECACHE option specifies a memory pool that SQLite can use for the database page cache with the default page cache implementation. (source: c3ref/c_config_covering_index_scan.html, checked-by: th3/cov1/main42.test, matrix: context, detail)

R-00918-16997-33541-06619-01421-44106-53820-17907

For each value N in the list, prefixes of length N bytes (when encoded using UTF-8) are indexed. (source: fts3.html, matrix: context, detail)

R-00971-36933-64386-25480-59601-44057-12316-57384

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, matrix: context, detail)

R-00980-39256-56998-08744-11771-59211-03196-47897

A SELECT statement enclosed in parentheses may appear as a scalar quantity. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-01040-26324-57141-34957-01130-02284-37283-35215

If sqlite3_close_v2() is called with unfinalized prepared statements and/or unfinished sqlite3_backups, then the database connection becomes an unusable "zombie" which will automatically be deallocated when the last prepared statement is finalized or the last sqlite3_backup is finished. (source: c3ref/close.html, checked-by: th3/cov1/main39.test, matrix: context, detail)

R-01060-48788-51013-07543-20121-01838-30879-37400

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, matrix: context, detail)

R-01080-23340-38639-20728-26521-10375-12428-21631

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, matrix: context, detail)

R-01099-23153-64353-38789-60475-21260-04733-65290

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, matrix: context, detail)

R-01210-33705-17929-40552-10240-19673-31617-63915

The sqlite3_result_zeroblob(C,N) and sqlite3_result_zeroblob64(C,N) interfaces set the result of the application-defined function to be a BLOB containing all zero bytes and N bytes in size. (source: c3ref/result_blob.html, checked-by: th3/req1/result01.test, matrix: context, detail)

R-01232-54838-06099-51737-48729-53565-23196-29255

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, matrix: context, detail)

R-01244-21922-18443-41581-31463-56152-20699-08111

If X is a NULL pointer then sqlite3_msize(X) returns zero. (source: c3ref/free.html, checked-by: th3/req1/malloc02.test, matrix: context, detail)

R-01255-31602-49480-12710-05718-10731-47284-31520

The second form (with a numeric argument) sets the limit for the specified database, or for all databases if the optional database name is omitted. (source: pragma.html, matrix: context, detail)

R-01256-01950-44319-11761-57126-19053-46711-18121

If neither ALL or DISTINCT are present, then the behavior is as if ALL were specified. (source: lang_select.html, checked-by: tcl/e_select.test, matrix: context, detail)

R-01265-50598-22943-30233-54647-62239-07339-33462

The result of load_extension() is always a NULL. (source: lang_corefunc.html, checked-by: th3/cov1/func03.test, matrix: context, detail)

R-01277-06213-42474-53306-49270-01327-38555-55249

This function sets the database handle error code and message. (source: c3ref/blob_reopen.html, checked-by: th3/req1/blob01.test, matrix: context, detail)

R-01283-11636-17384-60742-28077-41928-22950-29282

The unlikely(X) function is short-hand for likelihood(X,0.0625). (source: lang_corefunc.html, checked-by: src/resolve.c, matrix: context, detail)

R-01298-38284-36243-26684-29926-32770-62313-39537

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, matrix: context, detail)

R-01335-41434-49669-14652-18813-14877-14788-28819

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, matrix: context, detail)

R-01379-47306-55874-35809-24668-39985-05961-47226

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, matrix: context, detail)

R-01391-64022-44610-46114-55308-14246-64441-26910

The "sz=NNN" argument (where NNN represents a sequence of 1 or more digits) means that the average row size over all records of the table or index is NNN bytes per row. (source: fileformat2.html, matrix: context, detail)

R-01402-03601-05785-14929-05185-63336-09442-11982

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, matrix: context, detail)

R-01418-51310-13172-45959-27772-51956-15619-12685

However, only "rowid" works as the keyword in the CREATE TABLE statement. (source: withoutrowid.html, checked-by: tcl/without_rowid5.test, th3/cov1/withoutrowid01.test, matrix: context, detail)

R-01448-06859-29804-04457-45951-59563-33373-60665

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, matrix: context, detail)

R-01450-11152-28406-58151-44531-37891-10618-14069

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, matrix: context, detail)

R-01461-33534-36548-25495-56547-17079-32518-24565

The sqlite_stat4.sample BLOB for the WITHOUT ROWID table itself contains just the columns of the primary key. (source: fileformat2.html, matrix: context, detail)

R-01461-57962-49125-06652-40223-37300-46496-11713


(source: syntax/update-stmt.html, matrix: context, detail)

R-01463-03846-55774-41515-18498-48278-35486-16549

The DROP TABLE statement removes a table added with the CREATE TABLE statement. (source: lang_droptable.html, checked-by: slt/slt_lang_droptable.test, matrix: context, detail)

R-01506-11053-32502-45139-47336-58914-04836-35356

The first integer on a freelist trunk page is the page number of the next freelist trunk page in the list or zero if this is the last freelist trunk page. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-01544-29257-62595-06861-33076-18858-48075-56444

Note that max() is a simple function when it has 2 or more arguments but operates as an aggregate function if given only a single argument. (source: lang_corefunc.html, checked-by: th3/req1/func05.test, matrix: context, detail)

R-01587-15367-52926-43879-39292-01582-45706-36467

xUnpin() is called by SQLite with a pointer to a currently pinned page as its second argument. (source: c3ref/pcache_methods2.html, matrix: context, detail)

R-01592-27714-26694-24809-12949-19667-58343-14650

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, checked-by: th3/cov1/vdbeaux01.test, th3/req1/eqp01.test, matrix: context, detail)

R-01612-30877-07572-17003-08953-37118-55537-45996

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, matrix: context, detail)

R-01646-09830-46955-17168-41197-07539-61822-63814

The schema of the sqlite_stat3 table is as follows: CREATE TABLE sqlite_stat3(tbl,idx,nEq,nLt,nDLt,sample); (source: fileformat2.html, matrix: context, detail)

R-01665-16529-46232-20487-31256-22068-50948-28475

The sqlite_stat4.nDLt column holds a list of N integers where the K-th integer is the approximate number of entries in the index that are distinct in the first K columns and where the left-most K columns are collectively less than the left-most K columns of the sample. (source: fileformat2.html, matrix: context, detail)

R-01669-33464-29023-56990-09830-45167-30109-01082

When enabled, this PRAGMA causes many SELECT statements without an ORDER BY clause to emit their results in the reverse order from what they normally would. (source: pragma.html, checked-by: th3/req1/pragma27.test, matrix: context, detail)

R-01707-21292-14865-10862-25623-35625-38879-45651

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, matrix: context, detail)

R-01724-22761-13278-31858-02106-19568-34768-00701

If the sub-query is a compound select, then it must not use an ORDER BY clause. (source: optoverview.html, matrix: context, detail)

R-01750-40559-52065-12470-48383-41757-44468-25443

SQLite always opens immutable database files read-only and it skips all file locking and change detection on immutable database files. (source: uri.html, matrix: context, detail)

R-01766-15387-49282-35089-26578-35550-62519-17422

The third argument is the value to bind to the parameter. (source: c3ref/bind_blob.html, checked-by: th3/req1/bind01.test, matrix: context, detail)

R-01766-56079-01675-00227-41454-02515-08725-53568

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, matrix: context, detail)

R-01849-26079-03122-24665-29509-65417-11059-24465

Value is a big-endian 32-bit twos-complement integer. (source: fileformat2.html, checked-by: src/vdbeaux.c, th3/req1/fileformat02.test, matrix: context, detail)

R-01862-45642-20021-42706-06373-08124-48431-44069

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, matrix: context, detail)

R-01992-00519-59560-42589-34051-44285-27634-29157

Abs(X) returns 0.0 if X is a string or blob that cannot be converted to a numeric value. (source: lang_corefunc.html, checked-by: src/func.c, th3/cov1/func01.test, matrix: context, detail)

R-02005-53466-64191-45009-56070-04146-49679-01840

This option is used to enable or disable triggers. (source: c3ref/c_dbconfig_enable_fkey.html, checked-by: th3/cov1/main34.test, matrix: context, detail)

R-02045-23762-08268-15190-44661-50351-03152-06188

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, matrix: context, detail)

R-02054-15343-41665-64514-11380-36685-28202-41617

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, matrix: context, detail)

R-02060-64547-35959-63655-11509-53404-59087-08290

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, matrix: context, detail)

R-02063-40503-04157-38005-61496-25541-17209-31219

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, matrix: context, detail)

R-02065-49465-15222-26040-51715-24674-62882-64380

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/whereexpr.c, th3/req1/like01.test, matrix: context, detail)

R-02136-28803-61484-06431-31373-63795-12521-56561

The SQLITE_CONFIG_PMASZ option takes a single parameter which is an unsigned integer and sets the "Minimum PMA Size" for the multithreaded sorter to that integer. (source: c3ref/c_config_covering_index_scan.html, matrix: context, detail)

R-02204-63196-34665-25585-57735-42246-07132-57008

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, matrix: context, detail)

R-02216-00820-33390-20327-19071-10430-39697-32412

The argument X in sqlite3_file_control(db,SQLITE_FCNTL_VFS_POINTER,X) must be of type "sqlite3_vfs **". This opcodes will set *X to a pointer to the top-level VFS. (source: c3ref/c_fcntl_busyhandler.html, matrix: context, detail)

R-02223-49279-19512-29951-11875-18036-12006-07318

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, matrix: context, detail)

R-02287-33529-57702-51380-05125-54682-23740-46632

The shadow tables are ordinary SQLite data tables. (source: rtree.html, matrix: context, detail)

R-02313-46896-62483-09816-33283-33292-64343-33302

The subquery is not the right operand of a left outer join. (source: optoverview.html, matrix: context, detail)

R-02336-39303-27290-23991-25845-02494-13210-07983

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, matrix: context, detail)

R-02347-27622-26500-11854-22896-16033-00883-33051

The %n format is silently ignored and does not consume an argument. (source: lang_corefunc.html, checked-by: tcl/printf2.test, th3/cov1/printf08.test, matrix: context, detail)

R-02348-55344-32378-57138-47141-59055-59036-53991

If the most recent sqlite3_* API call associated with database connection D failed, then the sqlite3_errcode(D) interface returns the numeric result code or extended result code for that API call. (source: c3ref/errcode.html, matrix: context, detail)

R-02355-51069-10404-51667-09139-26886-58872-12048

The sqlite3_initialize() routine initializes the SQLite library. (source: c3ref/initialize.html, matrix: context, detail)

R-02402-03425-02840-42627-65060-52098-37241-46689

SQLite has three built-in collating functions: BINARY, NOCASE, and RTRIM. (source: datatype3.html, checked-by: th3/req1/datatype3_09.test, matrix: context, detail)

R-02424-24769-08747-39368-55205-12781-22154-40957

The second argument is the number of coordinates in each r-tree entry, and is always the same for any given R*Tree. (source: rtree.html, matrix: context, detail)

R-02445-31643-12462-38565-43200-47259-24553-56004

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, matrix: context, detail)

R-02452-55255-23051-52258-05350-24145-51359-57873

This in-memory database will vanish when the database connection is closed. (source: c3ref/open.html, checked-by: th3/cov1/sharedcache03.test, matrix: context, detail)

R-02526-60953-53079-20441-57017-47857-19506-30877

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, matrix: context, detail)

R-02535-05811-23269-15824-03293-63258-54375-28501

One can explicitly change out of WAL mode using a pragma such as this: PRAGMA journal_mode=DELETE; (source: wal.html, checked-by: tcl/e_wal.test, matrix: context, detail)

R-02545-26933-18999-48013-24665-54880-01582-10256

PRAGMA stats; (source: pragma.html, checked-by: th3/cov1/index02.test, matrix: context, detail)

R-02552-35840-06241-57542-28930-20966-35259-36291

If the filename is an empty string, then a private, temporary on-disk database will be created. (source: c3ref/open.html, matrix: context, detail)

R-02559-29055-33962-47817-36688-50556-57969-25403

The built-in functions used to implement LIKE and GLOB must not have been overloaded using the sqlite3_create_function() API. (source: optoverview.html, matrix: context, detail)

R-02573-31629-30846-62353-22365-28558-65513-55729

The cast is carried through even if it is lossy and irreversible. (source: datatype3.html, checked-by: th3/req1/datatype3_06.test, matrix: context, detail)

R-02597-60207-27800-53923-18122-14559-36270-03523

This pragma only changes the behavior of the SQL LIKE operator. It does not change the behavior of the sqlite3_strlike() C-language interface, which is always case insensitive. (source: pragma.html, matrix: context, detail)

R-02612-37947-62500-41847-13282-34946-09245-20088

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, matrix: context, detail)

R-02644-22131-14285-04703-01059-19073-41336-39895

In a compound SELECT statement, only the last or right-most simple SELECT may have an ORDER BY clause. (source: lang_select.html, checked-by: tcl/select4.test, th3/req1/select02.test, matrix: context, detail)

R-02661-56399-16863-16765-39256-52589-25619-21380

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, matrix: context, detail)

R-02718-64874-37028-59587-06155-35657-39180-35629

zProc may be 0, in which case SQLite will try to come up with an entry point name on its own. It first tries "sqlite3_extension_init". If that does not work, it constructs a name "sqlite3_X_init" where the X is consists of the lower-case equivalent of all ASCII alphabetic characters in the filename from the last "/" to the first following "." and omitting any initial "lib". (source: c3ref/load_extension.html, matrix: context, detail)

R-02723-34107-58585-29932-59518-10370-60775-12212

Note that it is not necessary for all coordinates in an R*Tree index to be constrained in order for the index search to be efficient. (source: rtree.html, matrix: context, detail)

R-02727-62622-47926-25458-03831-39556-32785-30724


(source: syntax/sql-stmt-list.html, checked-by: th3/req1/lang01.test, matrix: context, detail)

R-02748-19096-10502-39344-29556-06426-40271-21454

This option sets the threading mode to Single-thread. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, matrix: context, detail)

R-02752-50091-50763-13370-06213-52053-61647-05504

A cast of a REAL value into an INTEGER results in the integer between the REAL value and zero that is closest to the REAL value. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-02753-24748-27922-38844-00567-47453-02164-18624

A sequence number assigned to each index for internal tracking purposes. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15.test, matrix: context, detail)

R-02776-14802-36986-43055-33540-06058-61102-35501

The cell pointer array consists of K 2-byte integer offsets to the cell contents. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-02781-38257-61601-52824-21453-60365-23021-11331

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, matrix: context, detail)

R-02796-57854-35505-05294-25668-14805-51481-20554


(source: syntax/vacuum-stmt.html, checked-by: th3/cov1/vacuum01.test, matrix: context, detail)

R-02811-30532-06780-49040-22686-08574-20833-13918

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, matrix: context, detail)

R-02823-24537-56381-41482-05439-43543-17760-52541

All journal headers within the same journal must contain the same database page size and sector size. (source: fileformat2.html, matrix: context, detail)

R-02834-55381-03461-31664-23015-51190-16436-44295

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, checked-by: th3/req1/date01.test, matrix: context, detail)

R-02854-44844-25004-52722-20972-43816-38252-26758

Transactions created using BEGIN...COMMIT do not nest. (source: lang_transaction.html, matrix: context, detail)

R-02944-19877-16321-40331-61553-58376-42533-63822

Common table expression are not supported for statements inside of triggers. (source: lang_createtrigger.html, matrix: context, detail)

R-02961-26666-41829-02507-08304-47031-60058-62132

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, matrix: context, detail)

R-02982-34736-45462-50381-10151-04149-50124-39087

In order to maintain full backwards compatibility for legacy applications, the URI filename capability is disabled by default. (source: uri.html, checked-by: src/global.c, matrix: context, detail)

R-03014-26414-56458-20281-20451-13984-34730-16215

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, matrix: context, detail)

R-03031-24356-65405-31144-24091-48279-38334-39454

First, queries against the primary key are efficient: SELECT * FROM demo_index WHERE id=1; (source: rtree.html, matrix: context, detail)

R-03040-34580-06414-61878-61161-08528-60209-55771

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, matrix: context, detail)

R-03042-35027-57621-08562-39860-20110-45272-44124

In SQLite version 3. (source: lang_transaction.html, matrix: context, detail)

R-03108-01565-06076-29544-14093-00699-65398-01477

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, matrix: context, detail)

R-03108-55458-13871-22315-35483-39116-29628-08970

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, matrix: context, detail)

R-03108-63659-37525-03634-22905-61973-06931-63842

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, matrix: context, detail)

R-03145-46390-59121-11550-39703-00062-43990-26586

This function closes an open BLOB handle. (source: c3ref/blob_close.html, checked-by: tcl/e_blobclose.test, matrix: context, detail)

R-03152-62612-16815-38242-09328-52021-06080-07878

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, matrix: context, detail)

R-03153-51711-62729-48073-48955-48855-20367-13139

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, matrix: context, detail)

R-03235-45250-36807-55036-40039-56232-40830-51576

The "REPLACE" and "INSERT OR action" forms specify an alternative constraint conflict resolution algorithm to use during this one INSERT command. (source: lang_insert.html, checked-by: tcl/e_insert.test, matrix: context, detail)

R-03236-28327-53832-55698-26984-08951-20811-30621

The callback function registered by sqlite3_profile() is invoked as each SQL statement finishes. (source: c3ref/profile.html, checked-by: th3/cov1/main16.test, matrix: context, detail)

R-03263-59522-08977-47312-04173-07916-12369-56758

In formats 4, 7, and 10, the fractional seconds value SS.SSS can have one or more digits following the decimal point. Exactly three digits are shown in the examples because only the first three digits are significant to the result, but the input string can have fewer or more than three digits and the date/time functions will still operate correctly. (source: lang_datefunc.html, checked-by: th3/req1/date01.test, matrix: context, detail)

R-03353-05327-21191-28288-58549-30161-65035-16573

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, matrix: context, detail)

R-03364-08004-01846-16626-35041-21418-01059-33152

This saves disk I/O but at the expense of database safety and integrity. (source: pragma.html, checked-by: th3/req1/pragma25.test, matrix: context, detail)

R-03366-15091-31390-29880-25655-21575-38320-18449

A column with affinity BLOB 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, matrix: context, detail)

R-03371-37637-45197-41040-02325-30195-01599-52807

A value of 2 means UTF-16le. (source: fileformat2.html, checked-by: th3/req1/fileformat03.test, matrix: context, detail)

R-03384-16988-56342-27113-15582-23905-61625-46605

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, matrix: context, detail)

R-03387-12896-30110-08033-64260-38467-31820-29841

For a trigger, the tbl_name column stores the name of the table or view that causes the trigger to fire. (source: fileformat2.html, matrix: context, detail)

R-03407-11483-10764-04340-16731-05555-54147-57723

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, matrix: context, detail)

R-03407-34626-50961-58560-51866-04262-39023-12943

If P<=X then all P bytes of payload are stored directly on the btree page without overflow. (source: fileformat2.html, matrix: context, detail)

R-03415-51114-16877-13927-48292-50475-12409-45422

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, matrix: context, detail)

R-03421-22330-15487-45434-55764-30375-36326-03914

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, matrix: context, detail)

R-03421-57988-17823-20871-36963-31591-05991-31026

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, matrix: context, detail)

R-03473-60719-23522-47619-30011-51175-32203-58759

In an ordinary rowid table, the index entry always ends with the rowid even if the INTEGER PRIMARY KEY column is one of the columns being indexed. (source: fileformat2.html, checked-by: th3/req1/fileformat04.test, matrix: context, detail)

R-03478-24050-02080-63717-24763-14107-62865-40248

Application code can delete all entries from the sqlite_sequence table, but application code cannot drop the sqlite_sequence table. (source: fileformat2.html, matrix: context, detail)

R-03511-33422-55072-31663-17873-23476-48339-34907

If this function needs to obtain extra database locks before dirty pages can be flushed to disk, it does so. (source: c3ref/db_cacheflush.html, matrix: context, detail)

R-03529-13145-61172-45991-35853-35097-63918-09520

Each new VFS becomes the default VFS if the makeDflt flag is set. (source: c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test, matrix: context, detail)

R-03587-06098-24294-21557-27164-26781-18390-63915

The sqlite3.h header file defines C-preprocessor macros SQLITE_UTF8 as 1, SQLITE_UTF16LE as 2, and SQLITE_UTF16BE as 3, to use in place of the numeric codes for the text encoding. (source: fileformat2.html, checked-by: th3/cov1/main01.test, matrix: context, detail)

R-03642-28175-07234-22849-20831-22837-60337-13680

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, matrix: context, detail)

R-03650-18079-61121-63570-57348-35510-07530-48237

The languageid option causes the FTS4 table to have an additional hidden integer column that identifies the language of the text contained in each row. (source: fts3.html, matrix: context, detail)

R-03669-30599-21217-06896-17769-44438-31618-26741

The SQLITE_CONFIG_LOOKASIDE option takes two arguments that determine the default size of lookaside memory 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_covering_index_scan.html, checked-by: th3/th3main.c, matrix: context, detail)

R-03679-60639-59233-10900-40024-64867-37353-18498

Equals can be either = or ==. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-03718-56652-35720-52480-53179-27141-13621-15908

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, matrix: context, detail)

R-03733-29734-34954-23072-53116-42399-24178-53918

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, matrix: context, detail)

R-03763-21608-02614-21475-13242-45742-42220-44388

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, matrix: context, detail)

R-03774-63970-49348-18096-09598-62977-03168-07384

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, matrix: context, detail)

R-03775-43471-64071-42182-04548-19220-35511-30117

For CURRENT_DATE, "YYYY-MM-DD". (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-03782-50113-07889-61345-45931-21509-48774-40990

In a compound SELECT, the LIMIT clause applies to the entire compound, not just the final SELECT. (source: lang_select.html, checked-by: tcl/limit.test, th3/req1/select02.test, matrix: context, detail)

R-03793-19254-25835-35208-42396-01402-31770-31653

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, matrix: context, detail)

R-03805-18240-25396-23037-09576-28411-40508-44417

This private database will be automatically deleted as soon as the database connection is closed. (source: c3ref/open.html, matrix: context, detail)

R-03816-21626-17112-32643-57381-58430-16315-21594

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, matrix: context, detail)

R-03880-38961-16553-20098-36513-53865-60133-40229

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, matrix: context, detail)

R-03922-41160-10406-40879-23599-49045-53405-25401

If the flags parameter is zero, the BLOB is opened for read-only access. (source: c3ref/blob_open.html, checked-by: tcl/e_blobopen.test, th3/cov1/vdbeblob01.test, matrix: context, detail)

R-03934-63400-35021-15759-28695-34964-02248-59433

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, matrix: context, detail)

R-03971-55836-15694-04945-06147-03540-29941-51845

Application can invoke the SQLITE_FCNTL_TEMPFILENAME file-control to have SQLite generate a temporary filename using the same algorithm that is followed to generate temporary filenames for TEMP tables and other internal uses. (source: c3ref/c_fcntl_busyhandler.html, matrix: context, detail)

R-03993-24285-31190-14311-07438-62351-52230-47181

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, matrix: context, detail)

R-03996-12088-12971-06129-31814-44621-38881-57299

The M parameter must be a valid checkpoint mode: (source: c3ref/wal_checkpoint_v2.html, checked-by: src/main.c, tcl/e_walckpt.test, matrix: context, detail)

R-04002-25654-12640-07246-34304-59945-33194-22689

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=?) 0|0|0|SEARCH TABLE t1 USING INDEX i3 (b=?) (source: eqp.html, checked-by: tcl/eqp.test, matrix: context, detail)

R-04005-08111-39731-15170-36576-49560-64443-15597

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, matrix: context, detail)

R-04042-24825-64259-53667-46708-22366-11905-57675

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, matrix: context, detail)

R-04132-09474-00805-46196-04402-30131-02139-26149

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, matrix: context, detail)

R-04136-04681-09628-27696-46047-23040-33903-21102

If no collating function is explicitly defined, then the collating function defaults to BINARY. (source: datatype3.html, checked-by: th3/req1/datatype3_09.test, matrix: context, detail)

R-04156-06964-57164-01636-33935-16787-30855-09296

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, matrix: context, detail)

R-04207-37981-22726-45777-39517-24105-18228-28404

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, matrix: context, detail)

R-04230-65027-27281-23522-50954-57493-39965-31436

This statement detaches an additional database connection previously attached using the ATTACH statement. (source: lang_detach.html, checked-by: th3/req1/attach01.test, matrix: context, detail)

R-04232-24861-40917-13992-27645-07811-63353-60101

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, matrix: context, detail)

R-04239-05140-34509-16246-41712-61041-39161-05924

The sqlite3_close() and sqlite3_close_v2() routines are destructors for the sqlite3 object. (source: c3ref/close.html, checked-by: th3/th3util.c, matrix: context, detail)

R-04239-46396-01814-35437-09500-15330-29656-29388

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, matrix: context, detail)

R-04240-13860-65376-64948-20761-30630-14399-44960

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, matrix: context, detail)

R-04272-38653-14303-01704-38451-58113-36784-29823

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, matrix: context, detail)

R-04300-56712-32659-65159-49842-27130-29205-32160

If the X parameter to sqlite3_realloc(X,N) is a NULL pointer then its behavior is identical to calling sqlite3_malloc(N). (source: c3ref/free.html, checked-by: src/malloc.c, th3/req1/malloc02.test, matrix: context, detail)

R-04304-33529-02265-14363-24121-34151-06311-12119

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, matrix: context, detail)

R-04425-13680-18982-00806-50027-50568-09550-24420

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, matrix: context, detail)

R-04452-49349-54233-41206-52506-27116-05869-21475

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, matrix: context, detail)

R-04460-53386-37328-50072-27408-53032-10915-39219

The third argument is the number of slots. (source: c3ref/c_dbconfig_enable_fkey.html, checked-by: src/main.c, th3/req1/dbconfig01.test, matrix: context, detail)

R-04486-07266-01902-48649-32493-31514-19208-51625

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, matrix: context, detail)

R-04527-41458-36687-16089-60868-43636-56199-14424

Automatically started transactions are committed when the last query finishes. (source: lang_transaction.html, matrix: context, detail)

R-04532-11527-60293-16788-37808-59040-51319-08926

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, matrix: context, detail)

R-04549-59621-55549-18042-51558-13572-61866-18080

Tables in an attached database can be referred to using the syntax schema-name.table-name. (source: lang_attach.html, checked-by: th3/req1/attach01.test, matrix: context, detail)

R-04558-24451-40018-59769-17015-19792-37809-52993

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, matrix: context, detail)

R-04591-34196-50064-55566-45109-16204-13417-11786

If V is a NULL pointer then sqlite3_value_free(V) is a harmless no-op. (source: c3ref/value_dup.html, matrix: context, detail)

R-04670-35394-33055-58940-18775-32578-18606-16346

The schema of the sqlite_stat4 table is as follows: CREATE TABLE sqlite_stat4(tbl,idx,nEq,nLt,nDLt,sample); (source: fileformat2.html, matrix: context, detail)

R-04709-28430-14842-03600-36278-03324-37525-06420

The two syntaxes yield identical results. (source: pragma.html, checked-by: th3/req1/pragma01.test, matrix: context, detail)

R-04780-55815-53305-18116-10339-17181-34629-39653

The SQLITE_CONFIG_WIN32_HEAPSIZE option is only available if SQLite is compiled for Windows with the SQLITE_WIN32_MALLOC pre-processor macro defined. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, matrix: context, detail)

R-04813-30632-36613-23233-44977-18945-21013-25400

Any number of levels of indirection are allowed. (source: c3ref/unlock_notify.html, matrix: context, detail)

R-04813-32302-43211-64289-53860-58512-13652-55013

If a ROLLBACK operation occurs on the same database connection as a pending read or write, then the pending read or write may fail with an SQLITE_ABORT or SQLITE_ABORT_ROLLBACK error. (source: rescode.html, checked-by: th3/cov1/vdbe14.test, matrix: context, detail)

R-04837-64006-43032-20048-34043-15001-60399-59054

The "%w" formatting option is like "%q" except that it expects to be contained within double-quotes instead of single quotes, and it escapes the double-quote character instead of the single-quote character. (source: c3ref/mprintf.html, matrix: context, detail)

R-04857-57605-48133-44150-30535-05379-36560-24650

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, matrix: context, detail)

R-04864-61029-16829-56446-03389-34714-38812-10063

Information about the ORDER BY clause is stored in aOrderBy[]. (source: c3ref/index_info.html, matrix: context, detail)

R-04905-26881-40783-35987-17174-16580-39842-61729

SQLite uses dynamic run-time typing. (source: c3ref/column_decltype.html, matrix: context, detail)

R-04922-24076-20312-31472-33218-43152-59920-55175

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, matrix: context, detail)

R-04932-55942-18064-33744-52944-17414-47744-37595

If the NATURAL keyword is in the join-operator 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, matrix: context, detail)

R-04965-15290-07639-47076-03173-25539-55321-39216

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, matrix: context, detail)

R-04966-20924-22801-44909-48927-53251-60616-56610

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, matrix: context, detail)

R-04974-06543-23459-27016-04793-62254-28268-32718

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, matrix: context, detail)

R-05038-25064-50136-23943-62126-35147-57737-05371

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, matrix: context, detail)

R-05050-19932-51228-07490-05961-18569-19924-51856

The SQLITE_CONFIG_MUTEX 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_covering_index_scan.html, checked-by: th3/th3main.c, matrix: context, detail)

R-05088-64670-01812-40293-14899-41323-61587-34551

The sqlite_sequence. (source: fileformat2.html, matrix: context, detail)

R-05098-06501-37096-20174-22596-42631-53516-57817

In shared cache mode, attempting to attach the same database file more than once results in an error. (source: lang_detach.html, checked-by: tcl/shared7.test, th3/cov1/attach07.test, matrix: context, detail)

R-05119-02637-14414-33683-07351-22342-03629-61768

The 4-byte big-endian integer at offset 36 stores stores the total number of pages on the freelist. (source: fileformat2.html, checked-by: src/btree.c, th3/req1/pragma21.test, matrix: context, detail)

R-05155-34454-27271-17967-48575-19068-12269-57153

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, matrix: context, detail)

R-05192-57965-21317-62763-55347-54447-59069-43394

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, matrix: context, detail)

R-05196-58733-44887-26524-08639-58577-62968-38394

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, matrix: context, detail)

R-05226-30063-38393-23337-31220-10155-17682-45217

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, matrix: context, detail)

R-05239-12850-29861-48267-58259-09367-64321-59571

If no algorithm is specified anywhere, the ABORT algorithm is used. (source: lang_conflict.html, checked-by: th3/req1/conflict03.test, matrix: context, detail)

R-05254-00658-23742-34136-13538-61949-20472-35341

So the following query could use the partial index: SELECT * FROM tab2 WHERE b=456 AND c<>0; -- uses partial index (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-05256-02411-03120-41159-49408-38531-58118-03521

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, matrix: context, detail)

R-05272-22592-13374-24756-51597-06491-53677-55023

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, matrix: context, detail)

R-05363-17893-60997-09697-28202-47991-52787-63067

Views are read-only in SQLite. (source: lang_createview.html, checked-by: th3/req1/view01.test, matrix: context, detail)

R-05367-01575-38544-05441-45705-50827-33382-05876

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, matrix: context, detail)

R-05416-39654-33473-55228-34062-26099-18988-34297

Any callback set by a previous call to sqlite3_commit_hook() for the same database connection is overridden. (source: c3ref/commit_hook.html, matrix: context, detail)

R-05416-57569-14245-59554-42970-16556-04782-39407

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, matrix: context, detail)

R-05452-35198-10871-20803-29102-44206-02290-23562

The object returned by sqlite3_column_value() is an unprotected sqlite3_value object. (source: c3ref/column_blob.html, checked-by: th3/req1/column01.test, matrix: context, detail)

R-05461-33397-24167-58750-38066-50926-47850-55199

If SQLite is compiled with the SQLITE_ENABLE_STAT4 option, then additional histogram data is collected and stored in sqlite_stat4. (source: lang_analyze.html, checked-by: th3/req1/analyze01.test, matrix: context, detail)

R-05475-27562-55227-25532-19767-14622-00601-03902

The sqlite3_backup_remaining() routine returns the number of pages still to be backed up at the conclusion of the most recent sqlite3_backup_step(). (source: c3ref/backup_finish.html, matrix: context, detail)

R-05485-48422-13403-52608-43825-07463-15494-45842

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, matrix: context, detail)

R-05513-33819-59240-57490-36750-56355-20133-11323

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, matrix: context, detail)

R-05529-49311-19385-25088-51848-47183-58001-39726

If the integrity_check pragma finds problems, strings are returned (as multiple rows with a single column per row) which describe the problems. (source: pragma.html, checked-by: th3/req1/integrityck01.test, matrix: context, detail)

R-05617-50091-64320-09946-64698-41149-46478-61865

In the DELETE mode, the rollback journal is deleted at the conclusion of each transaction. (source: pragma.html, checked-by: th3/req1/pragma24.test, matrix: context, detail)

R-05644-53956-28885-25038-62165-04272-38392-10037

A WAL always grows from beginning toward the end. (source: fileformat2.html, matrix: context, detail)

R-05646-15132-11020-10123-43884-18508-24247-46472

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, matrix: context, detail)

R-05650-46070-32640-12192-03987-30502-33558-23123

And you can UPDATE, DELETE, INSERT or even DROP the shadow tables, though doing so will corrupt your R*Tree index. (source: rtree.html, matrix: context, detail)

R-05658-50861-03980-59142-22738-32773-09138-30302

SQLite only understands the hexadecimal integer notation when it appears in the SQL statement text, not when it appears as part of the content of the database. (source: lang_expr.html, checked-by: th3/req1/expr01.test, matrix: context, detail)

R-05693-48487-42509-32993-20525-28591-05760-18227

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, matrix: context, detail)

R-05702-07867-01732-07701-01060-12844-31655-42982

The key to an index b-tree is a record composed of the columns that are being indexed followed by the key of the corresponding table row. (source: fileformat2.html, matrix: context, detail)

R-05723-45863-34375-13823-48994-32413-55048-46379

The sqlite_stat3.sample column holds the value of the left-most field of an index identified by sqlite_stat3.idx and sqlite_stat3.tbl. (source: fileformat2.html, matrix: context, detail)

R-05731-00924-21642-36920-42396-08100-00001-17293

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, matrix: context, detail)

R-05734-13629-21302-48631-57775-63447-36504-30462

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, matrix: context, detail)

R-05791-54928-02769-08459-30778-25258-29853-24680

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, matrix: context, detail)

R-05898-54598-22699-61791-29592-33550-33097-15159

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, matrix: context, detail)

R-05903-08460-38037-43122-07089-54739-62474-34030

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, matrix: context, detail)

R-05906-34301-40279-37243-33018-07128-06632-24411

In particular, if one wants to know all "children" of a particular purchase order "?1", the query would be: SELECT po_num FROM purchaseorder WHERE parent_po=?1; (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-05912-10167-55658-18265-62443-52976-18281-50268

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, matrix: context, detail)

R-06021-09373-60954-10709-09959-52253-36320-11394

But extensions can override the match() function with more helpful logic. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-06024-54164-19422-11836-49964-56179-07103-14892

Two or more MATCH operators are allowed in the same WHERE clause, as long as they are connected by AND operators. (source: rtree.html, checked-by: th3/cov1/rtree04.test, matrix: context, detail)

R-06044-07843-41488-27430-15484-51013-09491-52143

Each page record stores a copy of the content of a page from the database file before it was changed. (source: fileformat2.html, matrix: context, detail)

R-06085-13761-54522-48441-51146-08233-07521-56188

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, matrix: context, detail)

R-06094-55152-33533-26668-27298-05995-61599-07184

Unbound parameters are interpreted as NULL. (source: c3ref/bind_blob.html, checked-by: th3/req1/bind01.test, matrix: context, detail)

R-06109-26546-51214-53713-59648-49657-53579-51997

In an index on a WITHOUT ROWID table, if one or more of the columns of the table PRIMARY KEY are also columns of the index, then the indexed column is not repeated in the table-key suffix on the end of the index record. (source: fileformat2.html, checked-by: th3/req1/fileformat04.test, matrix: context, detail)

R-06121-44139-52990-59264-15521-64976-48420-00452

If X is NULL then length(X) is NULL. (source: lang_corefunc.html, checked-by: th3/cov1/func01.test, matrix: context, detail)

R-06125-22327-52915-34188-45275-42271-34098-17754

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, matrix: context, detail)

R-06184-64035-19129-41964-19001-40522-59120-29266

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, matrix: context, detail)

R-06192-43187-09900-12561-05322-03139-09562-46958

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, matrix: context, detail)

R-06211-52866-60944-51344-33653-00695-35099-44728

A single WAL file can be reused multiple times. (source: fileformat2.html, matrix: context, detail)

R-06247-40710-32264-36174-63374-18082-50900-27234

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, matrix: context, detail)

R-06268-22533-04308-14386-21741-11230-29946-31155

The cache query parameter determines if the new database is opened using shared cache mode or with a private cache. (source: uri.html, matrix: context, detail)

R-06325-15315-47203-37013-07627-21557-12001-05874

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, matrix: context, detail)

R-06367-56981-61813-52742-22421-22635-19629-30966

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, matrix: context, detail)

R-06396-00487-24665-04701-02670-39583-42617-54638

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, matrix: context, detail)

R-06471-16287-47744-18667-43209-46484-64489-20920

If an INSERT or UPDATE statement attempts to modify the table content so that two or more rows have identical primary key values, that is a constraint violation. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-06483-27112-61838-60600-31039-16842-06931-49767

The xMutexEnd() interface is invoked exactly once for each call to sqlite3_shutdown(). (source: c3ref/mutex_methods.html, matrix: context, detail)

R-06497-44374-00376-59592-23814-22462-41106-13473

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, matrix: context, detail)

R-06521-54703-61418-20766-12795-30140-09114-51879

Each entry in the ex25acde index consists of only the columns a, c, d, and e, in that order. (source: fileformat2.html, checked-by: th3/req1/fileformat04.test, matrix: context, detail)

R-06526-21822-44146-52005-29553-25229-08273-20735

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, matrix: context, detail)

R-06529-47362-28298-49876-57281-01728-38007-39876

Following the size varint are one or more additional varints, one per column. (source: fileformat2.html, checked-by: src/vdbe.c, th3/req1/fileformat02.test, matrix: context, detail)

R-06617-54588-52951-29775-47412-02155-55122-34673

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, matrix: context, detail)

R-06626-12911-45896-07127-03501-58228-62690-15323

The SQLITE_CONFIG_HEAP option is only available if SQLite is compiled with either SQLITE_ENABLE_MEMSYS3 or SQLITE_ENABLE_MEMSYS5 and returns SQLITE_ERROR if invoked otherwise. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, th3/th3oom.c, matrix: context, detail)

R-06630-59185-25894-35312-55008-29354-15372-24847

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, matrix: context, detail)

R-06640-03838-35138-60782-53418-54966-60899-05980

The sqlite3_snapshot_open() interface returns SQLITE_OK on success or an appropriate error code if it fails. (source: c3ref/snapshot_open.html, matrix: context, detail)

R-06665-27325-40160-13157-49305-60075-62484-50967

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, matrix: context, detail)

R-06681-36915-07445-41328-35159-18817-58464-46967

The largest Fibonacci weight occurs on the first element of the sequence being summed. (source: fileformat2.html, matrix: context, detail)

R-06690-32088-38683-38277-10943-03715-22041-42931

The sqlite3_value_free(V) interface frees an sqlite3_value object previously obtained from sqlite3_value_dup(). (source: c3ref/value_dup.html, matrix: context, detail)

R-06696-14078-40229-44066-29642-50805-54097-35981

But there cannot be gaps in the columns of the index that are used. (source: optoverview.html, matrix: context, detail)

R-06710-22511-57136-17945-50070-33110-36192-14395

When case_sensitive_like is disabled, the default LIKE behavior is expressed. (source: pragma.html, checked-by: th3/req1/pragma10.test, matrix: context, detail)

R-06718-34797-20809-29800-16443-15807-57069-06143

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, matrix: context, detail)

R-06726-07466-50674-60893-18596-18216-57915-63107

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, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-06730-09692-37737-40278-41150-46947-53359-48437

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, matrix: context, detail)

R-06827-27714-37662-62265-13123-35942-36667-57305

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, matrix: context, detail)

R-06842-00595-27459-11943-09880-13369-18922-07215

If the URI contains an authority, then it must be either an empty string or the string "localhost". (source: c3ref/open.html, checked-by: tcl/e_uri.test, matrix: context, detail)

R-06866-39125-55055-41490-42674-60526-11809-05930

Freeblocks are always connected in order of increasing offset. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-06868-44093-33901-50180-63066-19596-24201-39627

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, matrix: context, detail)

R-06920-11647-57198-53546-22558-52613-40073-20013

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, matrix: context, detail)

R-06962-29571-53557-56869-59611-31379-35849-49272

The module-name must be registered with the SQLite database connection using sqlite3_create_module() or sqlite3_create_module_v2() prior to issuing the CREATE VIRTUAL TABLE statement. (source: lang_createvtab.html, matrix: context, detail)

R-07004-11522-61163-20681-09700-33376-04678-12467


(source: syntax/qualified-table-name.html, checked-by: tcl/indexedby.test, matrix: context, detail)

R-07016-26442-22994-35571-41506-56753-23987-59797

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, matrix: context, detail)

R-07046-65439-53781-18565-05582-11236-16234-65526

Any of these arguments may be NULL, in which case the corresponding element of metadata is omitted. (source: c3ref/table_column_metadata.html, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-07051-38416-38857-52812-51917-08930-07930-15860

If the declared type contains the string "INT" then it is assigned INTEGER affinity. (source: datatype3.html, checked-by: th3/req1/datatype3_01.test, matrix: context, detail)

R-07057-45839-58945-17922-08934-43257-63274-32805

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, matrix: context, detail)

R-07061-20551-45555-61970-58663-33619-01553-07889

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, matrix: context, detail)

R-07061-54920-02690-34802-26523-14617-41412-12725

To overcome this problem, SQLite attempts to flatten subqueries in the FROM clause of a SELECT. (source: optoverview.html, matrix: context, detail)

R-07100-06606-15404-00202-26903-38022-07639-13720

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, matrix: context, detail)

R-07154-34181-57164-55597-27085-41955-25905-44172

The table might look something like this: CREATE TABLE person( person_id INTEGER PRIMARY KEY, team_id INTEGER REFERENCES team, is_team_leader BOOLEAN, -- other fields elided ); (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-07161-27322-25839-32043-58017-64022-31100-22152

The one-byte integer at offset 7 gives the number of fragmented free bytes within the cell content area. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-07178-42569-23822-25165-44123-64804-39149-01193

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, matrix: context, detail)

R-07218-15811-34586-61584-11375-61122-40476-23928

The "sqlite_autoindex_TABLE_N" name is never allocated for an INTEGER PRIMARY KEY, either in rowid tables or WITHOUT ROWID tables. (source: fileformat2.html, matrix: context, detail)

R-07223-48323-28604-04641-30689-62184-47326-29698

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, matrix: context, detail)

R-07224-37960-07038-64465-45368-63797-43287-02157

The subquery does not use aggregates or the outer query is not DISTINCT. (source: optoverview.html, matrix: context, detail)

R-07272-22309-27541-26278-30152-44282-17867-64207

The default behavior is for mutexes to be enabled. (source: c3ref/threadsafe.html, checked-by: src/sqliteInt.h, matrix: context, detail)

R-07280-60510-42023-64617-40990-52816-04160-12840

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, matrix: context, detail)

R-07284-35990-05139-00747-51073-38324-35711-49391

If the SELECT statement is an aggregate query with a GROUP BY clause, then each of the expressions specified as part of the GROUP BY clause is evaluated for each row of the dataset. Each row is then assigned to a "group" based on the results; rows for which the results of evaluating the GROUP BY expressions are the same get assigned to the same group. (source: lang_select.html, checked-by: tcl/e_select.test, matrix: context, detail)

R-07291-35328-43800-36980-63575-06657-13005-40237

A value of 5 (0x05) means the page is an interior table b-tree page. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-07343-35026-05102-53943-15495-27224-50604-38447

An explicit DEFAULT clause may specify that the default value is NULL, a string constant, a blob constant, a signed-number, or any constant expression enclosed in parentheses. A default value may also be one of the special case-independent keywords CURRENT_TIME, CURRENT_DATE or CURRENT_TIMESTAMP. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-07373-26855-08191-07958-60277-35412-28383-64233

The SQLITE_FCNTL_VFSNAME opcode can be used to obtain the names of all VFSes in the VFS stack. (source: c3ref/c_fcntl_busyhandler.html, matrix: context, detail)

R-07387-29430-25270-46585-59144-29340-25578-53451

The three special identifiers describe the unique integer key (the rowid) associated with every row of every table and so are not available on WITHOUT ROWID tables. (source: lang_expr.html, checked-by: th3/req1/expr02.test, matrix: context, detail)

R-07391-62365-50484-20583-23156-31411-22306-43291

If the result is NULL, then sqlite3_column_bytes() returns zero. (source: c3ref/column_blob.html, checked-by: th3/req1/column01.test, matrix: context, detail)

R-07393-01823-08752-25333-30222-31178-15035-23553

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, matrix: context, detail)

R-07434-39946-64395-56249-16923-20954-34684-05720

The RELEASE command is like a COMMIT for a SAVEPOINT. (source: lang_savepoint.html, matrix: context, detail)

R-07443-03104-25430-52440-15603-28211-53431-58552

Shared cache is disabled by default. (source: c3ref/enable_shared_cache.html, matrix: context, detail)

R-07444-33850-51822-16540-61383-01460-32210-48440

Whitespace and comments that follow the final semicolon are ignored. (source: c3ref/complete.html, checked-by: th3/cov1/complete01.test, matrix: context, detail)

R-07450-54313-35396-53583-38577-19120-59837-03482

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, matrix: context, detail)

R-07454-30568-63832-24254-44508-63507-10248-49928

If a schema 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, matrix: context, detail)

R-07456-17111-24796-46400-60836-63045-36384-59086


(source: syntax/column-def.html, matrix: context, detail)

R-07474-04783-61557-15842-18544-20982-63471-50658

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, matrix: context, detail)

R-07490-32536-65444-08514-64358-21801-57919-13418

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, th3/cov1/build13.test, matrix: context, detail)

R-07535-34995-01447-54565-38524-09572-39500-26944

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, matrix: context, detail)

R-07548-06087-12762-53515-32578-33672-61878-36013

These routines return the name assigned to a particular column in the result set of a SELECT statement. (source: c3ref/column_name.html, matrix: context, detail)

R-07548-13422-51816-60728-36638-61915-61462-20502

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, matrix: context, detail)

R-07620-38093-30867-55941-58983-29233-64243-15469

SQLite keeps track of the largest ROWID that a table has ever held using an internal table named "sqlite_sequence". (source: autoinc.html, checked-by: th3/req1/autoinc01.test, matrix: context, detail)

R-07634-40532-31370-54179-45276-35620-20661-11259

The cache_spill pragma enables or disables the ability of the pager to spill dirty cache pages to the database file in the middle of a transaction. (source: pragma.html, checked-by: tcl/pragma2.test, matrix: context, detail)

R-07643-43989-02240-56676-20648-32041-01109-19546

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, matrix: context, detail)

R-07667-49537-57124-54989-59227-41131-33160-03537

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, matrix: context, detail)

R-07677-41881-40135-26272-16926-18163-28954-03069

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, matrix: context, detail)

R-07677-44926-50918-49822-13370-30168-54851-13094

The format for CURRENT_TIMESTAMP is "YYYY-MM-DD HH:MM:SS". (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-07686-30751-51285-58561-12727-05752-40900-44621

Hence, the content encoding for a WITHOUT ROWID table is the same as the content encoding for an ordinary rowid table, except that the order of the columns is rearranged so that PRIMARY KEY columns come first, and the content is used as the key in an index b-tree rather than as the data in a table b-tree. (source: fileformat2.html, matrix: context, detail)

R-07727-56631-19058-51033-37798-11219-19213-34496

Instead of cancelling the transaction, the ROLLBACK TO command restarts the transaction again at the beginning. (source: lang_savepoint.html, matrix: context, detail)

R-07734-01023-35400-33877-62605-53392-63637-26399

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, matrix: context, detail)

R-07782-53619-37361-40296-27943-36501-08866-63723

To be usable by an index a term must be of one of the following forms: column = expression column IS expression column > expression column >= expression column < expression column <= expression expression = column expression > column expression >= column expression < column expression <= column column IN (expression-list) column IN (subquery) column IS NULL (source: optoverview.html, matrix: context, detail)

R-07796-55423-52523-43504-40552-37000-09933-05670

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: tcl/e_blobbytes.test, th3/cov1/vdbeblob01.test, matrix: context, detail)

R-07801-24468-36344-27295-15963-50909-61997-55720

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, matrix: context, detail)

R-07848-59274-08583-36446-01674-55219-01938-38331

The requested measurement is written into a variable pointed to by the "pOut" parameter. (source: c3ref/stmt_scanstatus.html, checked-by: th3/cov1/status02.test, matrix: context, detail)

R-07865-58192-09859-42993-29277-46278-59857-06081

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, matrix: context, detail)

R-07866-07572-04759-27245-06319-59551-46387-52672

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, matrix: context, detail)

R-07896-01909-17755-58747-61497-14681-53331-52466

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, matrix: context, detail)

R-07963-00293-13635-32107-53901-52250-25105-19603

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, matrix: context, detail)

R-07986-46024-43778-44003-14770-46888-01136-33565

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, matrix: context, detail)

R-07987-54086-28782-61595-63457-13975-41237-46869

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, matrix: context, detail)

R-08013-37737-04179-14029-08100-20980-22992-19882

The application 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, matrix: context, detail)

R-08023-12605-32642-43845-16740-17726-48491-51878

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, matrix: context, detail)

R-08054-15429-02256-10004-55638-18867-37025-44792

The min/max-value pair columns are stored as 32-bit floating point values for "rtree" virtual tables or as 32-bit signed integers in "rtree_i32" virtual tables. (source: rtree.html, matrix: context, detail)

R-08114-32142-00732-64514-48561-20765-18490-60884

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, matrix: context, detail)

R-08161-44559-11294-25208-33337-24402-63584-35626

The xShutdown() method is called by sqlite3_shutdown(). (source: c3ref/pcache_methods2.html, matrix: context, detail)

R-08181-17347-07123-49289-35480-05775-37202-24874

The first form (without an argument) queries the current limit. (source: pragma.html, matrix: context, detail)

R-08185-34281-12728-08403-04938-30337-50100-31193

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, matrix: context, detail)

R-08195-21952-34144-42523-58914-33404-63629-47185

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, matrix: context, detail)

R-08198-48522-54017-24058-29188-47107-45936-39213

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, matrix: context, detail)

R-08220-00712-08202-21182-26079-26258-28714-22258

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, matrix: context, detail)

R-08224-30249-18275-36906-02216-43610-40508-55733

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, matrix: context, detail)

R-08267-32299-63841-11105-16971-59372-17886-11855

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, matrix: context, detail)

R-08292-01711-30929-18073-05835-23551-48977-32015

The sqlite_master.sql column stores SQL text that describes the object. This SQL text is a CREATE TABLE, CREATE VIRTUAL TABLE, CREATE INDEX, CREATE VIEW, or CREATE TRIGGER statement that if evaluated against the database file when it is the main database of a database connection would recreate the object. (source: fileformat2.html, matrix: context, detail)

R-08308-17224-38959-45804-35149-08611-40097-56535

The default collating function for all strings is BINARY. (source: fileformat2.html, checked-by: src/main.c, th3/req1/fileformat05.test, matrix: context, detail)

R-08348-34672-30710-39534-43438-18204-53248-46501

If the database is opened (and/or created) successfully, then SQLITE_OK is returned. Otherwise an error code is returned. (source: c3ref/open.html, matrix: context, detail)

R-08382-59936-33976-47324-12447-38582-10569-47799

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, checked-by: tcl/e_blobwrite.test, matrix: context, detail)

R-08385-08814-16494-59705-02420-23410-27891-51332

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, matrix: context, detail)

R-08404-60887-40385-02064-56855-44292-59430-13171

There are three arguments to SQLITE_CONFIG_SCRATCH: A pointer an 8-byte aligned memory buffer from which the scratch allocations will be drawn, the size of each scratch allocation (sz), and the maximum number of scratch allocations (N). (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, matrix: context, detail)

R-08468-48792-53240-63754-20732-07699-03752-10764

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, matrix: context, detail)

R-08469-46782-59132-04592-41153-65090-64039-23228

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, matrix: context, detail)

R-08470-40933-39231-45429-29526-36251-38185-62772

The ANALYZE command gathers statistics about tables and indices and stores the collected information in internal tables of the database where the query optimizer can access the information and use it to help make better query planning choices. (source: lang_analyze.html, checked-by: th3/req1/analyze01.test, matrix: context, detail)

R-08531-36543-43368-50490-58607-10151-50307-46292

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, matrix: context, detail)

R-08551-61977-00536-43869-21824-42581-53338-42827

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, matrix: context, detail)

R-08570-19916-06094-14315-21140-23229-64814-49543

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, matrix: context, detail)

R-08585-09708-58496-08903-08242-48575-40091-19029


(source: syntax/with-clause.html, matrix: context, detail)

R-08600-21007-59699-24141-37945-25671-33905-23052

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, matrix: context, detail)

R-08669-22397-26856-32296-22372-63471-24126-56225

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, matrix: context, detail)

R-08680-42661-24971-27030-06181-52917-24320-47746

The second column is the number of modified pages that have been written to the write-ahead log file. (source: pragma.html, matrix: context, detail)

R-08698-00464-45876-62927-50774-10665-22959-52892

In the second form, if the database name is omitted, the limit that is set becomes the default limit for all databases that are added to the database connection by subsequent ATTACH statements. (source: pragma.html, matrix: context, detail)

R-08702-09805-37818-25319-39065-12548-64378-42477

The sqlite3_commit_hook() interface registers a callback function to be invoked whenever a transaction is committed. (source: c3ref/commit_hook.html, matrix: context, detail)

R-08782-34587-24709-60747-46157-12897-42098-02206

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, matrix: context, detail)

R-08804-63175-03781-61718-64946-14312-06461-12465

Corresponding rows in the index and table b-trees share the same rowid or primary key values and contain the same value for all indexed columns. (source: fileformat2.html, matrix: context, detail)

R-08861-34280-62866-63452-63262-62491-16025-47018

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, matrix: context, detail)

R-08903-51590-18062-24037-51123-18798-32019-19886

The sqlite3_backup_pagecount() routine returns the total number of pages in the source database at the conclusion of the most recent sqlite3_backup_step(). (source: c3ref/backup_finish.html, matrix: context, detail)

R-08904-24719-11346-47287-22123-01310-57737-05262

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, matrix: context, detail)

R-08908-23439-37383-27763-09062-14229-58252-49666

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, matrix: context, detail)

R-08914-63790-06643-47289-00974-31735-19483-54546

The operator % outputs the value of its left operand modulo its right operand. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-08916-58393-39719-51162-04738-33368-03102-45258

This interface disables all automatic extensions previously registered using sqlite3_auto_extension(). (source: c3ref/reset_auto_extension.html, checked-by: th3/req1/autoext01.test, matrix: context, detail)

R-08940-21305-30374-23280-00035-42277-55348-10248

Unless it returns SQLITE_MISUSE, this function sets the database connection error code and message accessible via sqlite3_errcode() and sqlite3_errmsg() and related functions. (source: c3ref/blob_open.html, checked-by: tcl/e_blobopen.test, matrix: context, detail)

R-08951-19801-08417-23581-55505-30558-59834-07757

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, matrix: context, detail)

R-08955-55010-57172-43290-30379-42969-17627-21290


(source: syntax/simple-select-stmt.html, matrix: context, detail)

R-08980-53124-31180-17843-61277-57445-45439-15186

The CAST operator understands decimal integers only — conversion of hexadecimal integers stops at the "x" in the "0x" prefix of the hexadecimal integer string and thus result of the CAST is always zero. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-09005-28791-60027-45340-35703-17892-19441-18649

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, matrix: context, detail)

R-09033-01493-08484-25490-18731-61378-37357-02599

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, matrix: context, detail)

R-09068-40660-27195-07118-53993-03715-03215-45426

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, matrix: context, detail)

R-09155-31313-04558-40761-11557-49623-19488-24497

TRUNCATE This mode works the same way as RESTART with the addition that the WAL file is truncated to zero bytes upon successful completion. (source: pragma.html, checked-by: th3/req1/checkpoint01.test, matrix: context, detail)

R-09224-24423-49994-35052-44782-07327-29162-57753

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, matrix: context, detail)

R-09247-46544-65339-05337-14094-58644-44779-17885

The immutable parameter is a boolean query parameter that indicates that the database file is stored on read-only media. (source: c3ref/open.html, checked-by: th3/cov1/nolock01.test, matrix: context, detail)

R-09261-30775-60628-01529-14091-08694-38549-11160

Locks are not acquired until the first read or write operation. (source: lang_transaction.html, matrix: context, detail)

R-09261-46339-25709-54309-20729-08593-14367-03558

If Y is omitted then the default entry point name is used. (source: lang_corefunc.html, checked-by: th3/cov1/func03.test, matrix: context, detail)

R-09295-61337-32073-06786-13373-31465-59006-42307

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, matrix: context, detail)

R-09308-48504-63593-08660-56398-03756-58530-44239

If the column-name parameter to sqlite3_table_column_metadata() is a NULL pointer, then this routine simply checks for the existance of the table and returns SQLITE_OK if the table exists and SQLITE_ERROR if it does not. (source: c3ref/table_column_metadata.html, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-09310-54000-20676-45974-44442-40354-59533-62372

For the GLOB operator, the column must be indexed using the built-in BINARY collating sequence. (source: optoverview.html, matrix: context, detail)

R-09323-30470-62004-36090-30809-61331-17692-32313

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, matrix: context, detail)

R-09347-53396-09377-17353-50136-41410-13881-29341

The MATCH operator of a custom R*Tree query function must be a top-level AND-connected term of the WHERE clause, or else it will not be usable by the R*Tree query optimizer and the query will not be runnable. (source: rtree.html, checked-by: th3/cov1/rtree04.test, matrix: context, detail)

R-09385-24237-02595-13081-61892-09820-41014-64589

Finally, the database is flushed to persistent storage using another xSync method call. (source: fileformat2.html, matrix: context, detail)

R-09398-26102-26496-59828-02242-35200-16935-00376

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, matrix: context, detail)

R-09458-10155-15158-32437-48979-56448-00494-45626

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, matrix: context, detail)

R-09479-17959-18929-07004-59700-09241-00688-08802

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, matrix: context, detail)

R-09543-06473-23021-32220-32793-21583-15245-47596

A NULL pointer can be used in place of "main" to refer to the main database file. (source: c3ref/file_control.html, matrix: context, detail)

R-09564-22170-27375-05763-54488-45369-57253-27733

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, matrix: context, detail)

R-09565-18143-64866-36036-15374-23384-04094-39911

The sqlite_master.rootpage column stores the page number of the root b-tree page for tables and indexes. (source: fileformat2.html, matrix: context, detail)

R-09569-43120-63415-51925-62643-35022-32061-47045

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, matrix: context, detail)

R-09593-03321-24060-42412-44512-07305-25128-61318

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, matrix: context, detail)

R-09669-59284-18904-57253-21475-23488-47064-03765

Text values (odd serial types 13 and larger) sort after numeric values in the order determined by the columns collating function. (source: fileformat2.html, checked-by: th3/req1/fileformat05.test, matrix: context, detail)

R-09681-58560-10305-15727-00297-35868-05335-61175

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, matrix: context, detail)

R-09702-18252-10292-02056-28728-37972-55531-64507

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, matrix: context, detail)

R-09704-29281-62509-09033-18405-10464-02206-26533

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, matrix: context, detail)

R-09708-05727-57247-34421-62723-03461-49404-45269

PRAGMA schema.table_info(table-name); This pragma returns one row for each column in the named table. (source: pragma.html, checked-by: th3/req1/pragma15.test, matrix: context, detail)

R-09748-03241-62835-60245-32173-07711-55769-04429

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, matrix: context, detail)

R-09752-28022-16834-06877-08228-58338-51643-57660

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 ensure 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/th3main.c, matrix: context, detail)

R-09773-34266-19272-64425-39680-64969-31410-22959

The name of the column being indexed. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15.test, matrix: context, detail)

R-09773-40602-32968-36782-04559-37578-19507-63398

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, matrix: context, detail)

R-09782-32948-24767-08594-36498-62288-40921-54378

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, matrix: context, detail)

R-09783-65036-25423-48067-42538-45414-00279-46435

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, matrix: context, detail)

R-09798-06276-54780-63214-14309-15802-32530-00850

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, matrix: context, detail)

R-09808-17554-50654-05359-25920-63839-21736-07612

SQLITE_LIMIT_SQL_LENGTH The maximum length of an SQL statement, in bytes. (source: c3ref/c_limit_attached.html, checked-by: tcl/sqllimits1.test, th3/req1/limit02.test, matrix: context, detail)

R-09813-17279-59166-04895-48075-17845-31813-35638

Also, GLOB is case sensitive, unlike LIKE. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-09813-48563-02406-35251-52837-06025-02382-52921

The value returned by sqlite3_changes() immediately after an INSERT, UPDATE or DELETE statement run on a view is always zero. (source: c3ref/changes.html, checked-by: tcl/e_changes.test, matrix: context, detail)

R-09849-00220-60139-37223-30218-05088-34235-14106

A negative value for the zeroblob results in a zero-length BLOB. (source: c3ref/bind_blob.html, checked-by: th3/req1/bind01.test, matrix: context, detail)

R-09904-19077-60402-31152-09250-23294-22236-64637

The aParam[] array (size nParam) contains the parameter values passed to the SQL function on the right-hand side of the MATCH operator. (source: rtree.html, matrix: context, detail)

R-09943-43999-40050-60099-27352-31262-44628-15476

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, matrix: context, detail)

R-09991-48941-34645-31832-04466-19849-36549-45775

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>?) 0|1|1|SCAN TABLE t2 (source: eqp.html, checked-by: tcl/eqp.test, matrix: context, detail)

R-10042-17899-51824-29189-33430-37310-31146-42510

If one operand has INTEGER, REAL or NUMERIC affinity and the other operand has TEXT or BLOB or no affinity then NUMERIC affinity is applied to other operand. (source: datatype3.html, checked-by: th3/cov1/affinity01.test, th3/req1/datatype3_05.test, matrix: context, detail)

R-10066-26552-54015-08012-45446-13573-10240-21333

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, matrix: context, detail)

R-10099-10064-58361-57180-39744-05216-32972-43593

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, matrix: context, detail)

R-10161-06535-21834-27678-30600-07720-10456-31293

The dbstat virtual table is an eponymous virtual table, meaning that is not necessary to run CREATE VIRTUAL TABLE to create an instance of the dbstat virtual table before using it. (source: dbstat.html, matrix: context, detail)

R-10190-16965-26709-52634-48294-10827-43315-62793

The sqlite_stat3.nDLt column holds the approximate number of distinct left-most entries in the index that are less than the sample. (source: fileformat2.html, matrix: context, detail)

R-10203-42688-05745-20246-57567-01031-33670-42087

The callback registered by this function replaces any existing callback registered using sqlite3_wal_hook(). (source: c3ref/wal_autocheckpoint.html, checked-by: tcl/e_walauto.test, matrix: context, detail)

R-10231-33192-57225-15166-03458-30620-49896-31858

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/req1/sql01.test, th3/th3util.c, matrix: context, detail)

R-10260-62465-16896-41827-00033-64414-58979-23233

PRAGMA reverse_unordered_selects; PRAGMA reverse_unordered_selects = boolean; (source: pragma.html, checked-by: th3/req1/pragma27.test, matrix: context, detail)

R-10284-11658-30925-56941-44506-24940-01613-45379

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, matrix: context, detail)

R-10346-40046-35521-21776-43630-65428-20399-28702

The CREATE TRIGGER statement is used to add triggers to the database schema. (source: lang_createtrigger.html, checked-by: slt/slt_lang_createtrigger.test, matrix: context, detail)

R-10379-15557-17362-29530-27887-61401-49779-43037

For the static mutex types, the same mutex is returned on every call that has the same type number. (source: c3ref/mutex_alloc.html, matrix: context, detail)

R-10382-19306-57880-35714-22073-14679-32627-12019

The fourth parameter may optionally be ORed with SQLITE_DETERMINISTIC to signal that the function will always return the same result given the same inputs within a single SQL statement. (source: c3ref/create_function.html, checked-by: th3/cov1/func11.test, matrix: context, detail)

R-10393-27560-44275-02566-07675-36741-21342-01930

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, matrix: context, detail)

R-10396-30188-46343-25997-25410-36538-31299-06809

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, matrix: context, detail)

R-10421-19736-31829-13989-20506-40409-64205-24100

If any other process is running a checkpoint operation at the same time, the lock cannot be obtained and SQLITE_BUSY is returned. (source: c3ref/wal_checkpoint_v2.html, checked-by: src/wal.c, tcl/e_walckpt.test, matrix: context, detail)

R-10466-53920-46827-22051-27556-17000-33700-37865

Calling sqlite3_wal_hook() replaces any previously registered write-ahead log callback. (source: c3ref/wal_hook.html, checked-by: tcl/e_walhook.test, matrix: context, detail)

R-10470-30318-56877-28142-06718-49670-04430-59485

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, matrix: context, detail)

R-10477-59572-35916-33197-44074-53826-19513-26308

Note that unlike that plain ROLLBACK command (without the TO keyword) the ROLLBACK TO command does not cancel the transaction. (source: lang_savepoint.html, matrix: context, detail)

R-10484-47921-51855-29245-64644-01052-63397-23881

Views are removed with the DROP VIEW command. (source: lang_createview.html, checked-by: slt/slt_lang_createview.test, th3/req1/view01.test, matrix: context, detail)

R-10514-25250-42695-33540-35883-31325-38548-55570

If pnCkpt is not NULL,then *pnCkpt is set to the total number of checkpointed frames in the log file (including any that were already checkpointed before the function was called) or to -1 if the checkpoint could not run due to an error or because the database is not in WAL mode. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, matrix: context, detail)

R-10543-26736-58011-26768-22566-64168-18081-13550

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, matrix: context, detail)

R-10546-57588-48216-07313-35751-26470-62407-13922

When RAISE(IGNORE) is called, the remainder of the current trigger program, the statement that caused the trigger program to execute and any subsequent trigger programs that would have been executed are abandoned. (source: lang_createtrigger.html, matrix: context, detail)

R-10560-59682-02283-61456-63246-40565-64893-57962

The NOCASE collation is like BINARY except that uppercase ASCII characters ('A' through 'Z') are folded into their lowercase equivalents prior to running the comparison. Note that only ASCII characters are case-folded. (source: fileformat2.html, matrix: context, detail)

R-10565-09557-60911-42161-01648-20022-48231-49571

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, matrix: context, detail)

R-10645-12439-29307-46302-11314-15082-25631-53469

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, matrix: context, detail)

R-10715-11594-42361-64533-62693-34754-22491-52002

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, matrix: context, detail)

R-10717-02538-23214-42555-35648-10956-24290-47354

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, matrix: context, detail)

R-10722-45310-03105-41587-65268-38930-36590-56175

All intervening SAVEPOINTs are canceled, however. (source: lang_savepoint.html, matrix: context, detail)

R-10734-24248-12820-36089-32208-53594-64364-42192

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, matrix: context, detail)

R-10777-25114-28148-35067-60781-11341-59885-20930

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, matrix: context, detail)

R-10815-21922-06260-57655-10656-49970-23058-15520

When faced with the choice of using an index to satisfy WHERE clause constraints or satisfying an ORDER BY clause, SQLite does the same cost analysis described above and chooses the index that it believes will result in the fastest answer. (source: optoverview.html, matrix: context, detail)

R-10827-60271-29957-56948-24015-30184-30486-05573

If the journal mode could not be changed, the original journal mode is returned. (source: pragma.html, checked-by: th3/req1/pragma23.test, matrix: context, detail)

R-10836-27632-25173-23493-20321-61178-46712-15199

The sqlite3_value_dup(V) interface makes a copy of the sqlite3_value object D and returns a pointer to that copy. (source: c3ref/value_dup.html, matrix: context, detail)

R-10872-35808-62525-46404-48063-22154-06728-34056

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, matrix: context, detail)

R-10883-17697-39247-15529-29929-13310-12082-24783

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, matrix: context, detail)

R-10886-33090-42835-40467-38387-59487-39282-25653

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, matrix: context, detail)

R-10893-13770-29008-51080-40727-44407-18243-57719

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, matrix: context, detail)

R-10900-57544-37938-07934-32518-44927-61812-27434

The rollback journal file can be deleted (source: fileformat2.html, matrix: context, detail)

R-10927-26133-64625-21951-56674-25631-48081-51767

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, matrix: context, detail)

R-10933-37470-14937-54231-03343-64899-21190-46936

The index for "?NNN" parameters is the value of NNN. (source: c3ref/bind_blob.html, checked-by: th3/req1/bind01.test, matrix: context, detail)

R-10948-48115-30420-45129-26938-33308-29061-07454

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, matrix: context, detail)

R-10964-23144-03179-07180-41128-15464-48410-22347

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, matrix: context, detail)

R-10993-11647-55800-55293-06436-13332-42842-10882

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: tcl/e_wal.test, th3/req1/pragma05.test, matrix: context, detail)

R-11041-58701-63446-54854-64444-07239-52476-54830

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, matrix: context, detail)

R-11061-58747-31587-59612-39335-16677-23352-15397

If N is less than 1 then a 1-byte random blob is returned. (source: lang_corefunc.html, checked-by: th3/req1/func03.test, matrix: context, detail)

R-11062-21931-47759-21146-52801-65238-28754-37817

szPage will always a power of two. (source: c3ref/pcache_methods2.html, matrix: context, detail)

R-11078-03945-63030-33506-24033-34573-31697-17195

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, matrix: context, detail)

R-11127-09633-57185-22901-21397-40062-06184-59885

If there is an error, *ppStmt is set to NULL. (source: c3ref/prepare.html, checked-by: th3/req1/prepare01.test, matrix: context, detail)

R-11129-23371-40000-09444-50753-04787-03077-31414

END TRANSACTION is an alias for COMMIT. (source: lang_transaction.html, matrix: context, detail)

R-11135-63542-29250-48049-02589-36558-61016-54500

Expressions in an index may not reference other tables and may not use subqueries nor functions whose result might change (ex: random() or sqlite_version()). (source: lang_createindex.html, matrix: context, detail)

R-11148-40995-48554-02818-10393-13608-40990-18433

The memory returned by sqlite3_malloc(), sqlite3_realloc(), sqlite3_malloc64(), and sqlite3_realloc64() 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, matrix: context, detail)

R-11152-23456-02631-23120-19562-51052-54000-26119

The unlikely(X) function returns the argument X unchanged. (source: lang_corefunc.html, checked-by: tcl/func3.test, matrix: context, detail)

R-11162-32742-04957-49790-62717-44478-27100-43420

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, matrix: context, detail)

R-11203-26095-47421-44988-44413-41576-06585-21050

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, matrix: context, detail)

R-11211-21323-44589-16843-54908-31937-00970-23693

PRAGMA schema.freelist_count; Return the number of unused pages in the database file. (source: pragma.html, checked-by: tcl/pragma2.test, th3/req1/pragma21.test, matrix: context, detail)

R-11226-46663-42731-44808-54857-63929-35681-11721

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, matrix: context, detail)

R-11241-54478-18941-45655-01844-39578-11562-47598

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, matrix: context, detail)

R-11255-19907-56460-39957-30226-19999-22429-23256

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, matrix: context, detail)

R-11290-60355-43377-26029-27960-65452-54790-61013

The top-level SELECT statement is always assigned the selectid value 0. (source: eqp.html, checked-by: th3/req1/eqp01.test, matrix: context, detail)

R-11295-04657-09653-04480-53801-04231-56338-07604

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, matrix: context, detail)

R-11315-64212-00710-49784-05093-45690-30554-02549

The default busy callback is NULL. (source: c3ref/busy_handler.html, checked-by: th3/req1/busy01.test, matrix: context, detail)

R-11321-47427-17901-35193-41209-48737-39207-23278

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, matrix: context, detail)

R-11345-24891-48483-09798-42153-35485-11277-64815

The 4-byte big-endian integer at offset 28 into the header stores the size of the database file in pages. (source: fileformat2.html, matrix: context, detail)

R-11367-28935-40520-63725-29251-53752-16809-23090

The sqlite3_snapshot_get(D,S,P) interface attempts to make a new sqlite3_snapshot object that records the current state of schema S in database connection D. (source: c3ref/snapshot_get.html, matrix: context, detail)

R-11370-04520-26477-32393-15829-52644-05616-39032

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, matrix: context, detail)

R-11423-52711-44857-10860-28486-08502-59467-30884

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, matrix: context, detail)

R-11464-18362-31752-52659-04390-24092-43500-36484

This ensures that the next writer will restart the log file from the beginning. (source: c3ref/wal_checkpoint_v2.html, matrix: context, detail)

R-11479-62774-14648-38644-49524-53539-14021-51295

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, matrix: context, detail)

R-11498-58022-52113-15294-58649-22171-38649-39142

In a well-formed b-tree page, the total number of bytes in fragments may not exceed 60. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-11549-19921-03928-49162-57832-06313-31858-02375

With synchronous=FULL in WAL mode, an additional sync operation of the WAL file happens after each transaction commit. (source: pragma.html, matrix: context, detail)

R-11553-06434-51801-18684-33273-42427-03932-31278

FULL This mode blocks (invokes the busy-handler callback) until there is no database writer and all readers are reading from the most recent database snapshot. It then checkpoints all frames in the log file and syncs the database file. (source: pragma.html, checked-by: th3/req1/checkpoint01.test, matrix: context, detail)

R-11564-19849-41478-44833-06358-20754-48496-53228

It is an error to specify both a schema-name and the TEMP keyword on a VIEW, unless the schema-name is "temp". (source: lang_createview.html, matrix: context, detail)

R-11566-63657-14865-04704-35153-27057-50201-14742

The 4-byte big-endian integer at offset 56 determines the encoding used for all text strings stored in the database. (source: fileformat2.html, checked-by: th3/req1/fileformat03.test, matrix: context, detail)

R-11576-11990-36701-63648-24289-51988-09315-26987

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, matrix: context, detail)

R-11620-22743-59737-64939-21707-40674-29550-48097

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, matrix: context, detail)

R-11628-62147-05445-61752-17620-56103-14750-56419

No attempt is made to convert NULL or BLOB values. (source: datatype3.html, checked-by: th3/req1/datatype3_01.test, matrix: context, detail)

R-11643-51568-63953-16021-50557-65139-53423-53670

The sqlite3_preupdate_count(D) interface returns the number of columns in the row that is being inserted, updated, or deleted. (source: c3ref/preupdate_count.html, matrix: context, detail)

R-11683-62380-30736-32552-21398-51660-49111-11348

The specified column of row iRow contains a value that is not a TEXT or BLOB value (source: c3ref/blob_open.html, checked-by: tcl/e_blobopen.test, matrix: context, detail)

R-11684-02844-26168-40557-28007-15193-14492-18686

The explicit COMMIT command runs immediately, even if there are pending SELECT statements. (source: lang_transaction.html, matrix: context, detail)

R-11730-53816-33732-41455-13175-02323-60121-55502

The compound SELECT operators UNION, INTERSECT and EXCEPT perform implicit comparisons between values. (source: datatype3.html, checked-by: th3/req1/datatype3_07.test, matrix: context, detail)

R-11734-42348-39517-48107-05303-30755-04856-25806


(source: syntax/compound-select-stmt.html, matrix: context, detail)

R-11740-30529-09837-33143-12061-13377-09078-25577

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, matrix: context, detail)

R-11799-54013-19740-27693-35471-55958-11272-42681

The sqlite_master table contains entries for internal schema objects in addition to application- and programmer-defined objects. (source: fileformat2.html, matrix: context, detail)

R-11802-27774-09561-41384-21841-59026-14543-36401

There can be an arbitrary number of sqlite_stat4 entries per index. (source: fileformat2.html, matrix: context, detail)

R-11827-12506-47170-16590-52650-51721-09887-06885


(source: syntax/create-table-stmt.html, matrix: context, detail)

R-11847-09179-40053-04599-51829-21779-50650-56945

1 if the index-column is sorted in reverse (DESC) order by the index and 0 otherwise. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15x.test, matrix: context, detail)

R-11848-39326-04026-39006-16097-08947-10502-17699

When secure-delete on, SQLite overwrites deleted content with zeros. (source: pragma.html, checked-by: th3/cov1/pragma20.test, matrix: context, detail)

R-11856-19836-24274-28109-29706-17487-59516-28752

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, matrix: context, detail)

R-11896-08162-39829-09724-10165-05972-28450-60411

The "none" setting means that auto-vacuum is disabled. (source: pragma.html, checked-by: th3/req1/pragma07.test, matrix: context, detail)

R-11920-30904-34388-20276-30838-60938-49360-56760

If the result is NULL, then sqlite3_column_bytes16() returns zero. (source: c3ref/column_blob.html, checked-by: th3/req1/column01.test, matrix: context, detail)

R-11967-56545-48759-50416-31335-06796-11719-37759

The highwater mark is always 0. (source: c3ref/c_dbstatus_options.html, checked-by: src/status.c, matrix: context, detail)

R-11975-28707-46522-06276-23691-04065-63160-37521

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, matrix: context, detail)

R-11976-23534-61150-43568-11270-52721-42271-48852

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, matrix: context, detail)

R-12104-35971-65257-58163-03125-32650-03522-02366

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, matrix: context, detail)

R-12123-54095-45651-21328-13666-03690-37485-08653

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, matrix: context, detail)

R-12168-36613-28272-64664-28588-05948-62910-42845

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, matrix: context, detail)

R-12183-43719-06718-33366-17178-17275-22858-03286

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, matrix: context, detail)

R-12196-28473-08182-34058-05586-50846-36474-32114

Note that calling sqlite3_busy_timeout() or evaluating PRAGMA busy_timeout=N will change the busy handler and thus clear any previously set busy handler. (source: c3ref/busy_handler.html, checked-by: th3/req1/busy01.test, matrix: context, detail)

R-12238-55120-28128-47311-07751-08633-28104-35625

Whenever a PRAGMA statement is parsed, an SQLITE_FCNTL_PRAGMA file control is sent to the open sqlite3_file object corresponding to the database file to which the pragma statement refers. (source: c3ref/c_fcntl_busyhandler.html, checked-by: src/pragma.c, tcl/multiplex4.test, matrix: context, detail)

R-12253-03857-23707-37833-05511-18068-12774-39997

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, matrix: context, detail)

R-12259-19638-21315-58129-32389-49540-45137-32104

A VALUES clause cannot be followed by LIMIT. (source: lang_select.html, checked-by: th3/req1/select02.test, matrix: context, detail)

R-12271-02651-64139-38097-45875-33970-39168-37355

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_covering_index_scan.html, checked-by: th3/cov1/malloc07.test, matrix: context, detail)

R-12275-20298-47772-56757-15778-39462-64033-34126

In other words, the schema-name. prefix on the table name is not allowed within triggers. (source: lang_delete.html, checked-by: tcl/e_delete.test, matrix: context, detail)

R-12275-61338-03637-10461-60018-19416-13010-07977

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, matrix: context, detail)

R-12374-37755-19006-43319-29109-21110-40176-02153

The locking-mode is either NORMAL or EXCLUSIVE. (source: pragma.html, checked-by: th3/req1/pragma04.test, matrix: context, detail)

R-12385-29357-06321-01436-47924-30729-53833-26197

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, matrix: context, detail)

R-12410-31217-15113-45152-04874-52421-25880-35478

This mode works the same way as SQLITE_CHECKPOINT_FULL with the addition that after checkpointing the log file it blocks (calls the busy-handler callback) until all readers are reading from the database file only. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, th3/req1/checkpoint01.test, matrix: context, detail)

R-12452-54941-39354-45567-09766-62540-46508-43420

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, matrix: context, detail)

R-12482-18070-30469-35511-31025-38188-23401-30246

Extension loading must be enabled using sqlite3_enable_load_extension() or sqlite3_db_config(db,SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION,1,NULL) prior to calling this API, otherwise an error will be returned. (source: c3ref/load_extension.html, matrix: context, detail)

R-12507-28763-48132-30913-24133-27495-38799-45736

PRAGMA foreign_key_list(table-name); This pragma returns one row for each foreign key constraint created by a REFERENCES clause in the CREATE TABLE statement of table "table-name". (source: pragma.html, checked-by: th3/req1/pragma17.test, matrix: context, detail)

R-12525-60165-32842-37850-04403-38425-48242-20323

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, matrix: context, detail)

R-12526-56546-27211-20254-24569-61288-04911-18504

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, matrix: context, detail)

R-12527-00403-29905-17103-05546-05821-61371-29057

If a NOT NULL constraint violation occurs, the REPLACE conflict resolution replaces the NULL value with the 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, matrix: context, detail)

R-12556-35327-19465-37938-14363-50325-55527-10605

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, matrix: context, detail)

R-12572-62501-53672-53219-61722-28742-24509-13424

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, matrix: context, detail)

R-12598-40983-37822-03408-00608-51890-59841-03948

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, matrix: context, detail)

R-12628-51384-03932-15263-35503-59702-54474-35956

For example, 0x1234 means the same as 4660 and 0x8000000000000000 means the same as -9223372036854775808. (source: lang_expr.html, checked-by: th3/req1/expr01.test, matrix: context, detail)

R-12643-30541-59599-14693-16305-56231-57085-12905

The incremental blob I/O mechanism does not work for WITHOUT ROWID tables. (source: withoutrowid.html, checked-by: tcl/without_rowid5.test, th3/cov1/vdbeblob01.test, matrix: context, detail)

R-12645-39772-05350-58220-21808-12776-02132-01190

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, matrix: context, detail)

R-12670-39947-34778-58945-43914-57818-35055-57037

Again, in this case the call to sqlite3_backup_step() can be retried later on. (source: c3ref/backup_finish.html, matrix: context, detail)

R-12693-31159-47760-14933-14712-45041-12329-60921

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. (source: eqp.html, checked-by: th3/req1/eqp01.test, matrix: context, detail)

R-12723-08526-08318-37597-13416-02611-20506-59607

SQLITE_LIMIT_EXPR_DEPTH The maximum depth of the parse tree on any expression. (source: c3ref/c_limit_attached.html, checked-by: tcl/sqllimits1.test, th3/req1/limit02.test, matrix: context, detail)

R-12747-43999-37880-44715-10819-05870-41962-30541

A VALUES clause cannot be followed by ORDER BY. (source: lang_select.html, checked-by: th3/req1/select02.test, matrix: context, detail)

R-12782-61841-54063-57500-26369-54791-20214-34360

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, matrix: context, detail)

R-12786-00766-63482-41386-10445-23868-47532-37384

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, matrix: context, detail)

R-12793-43283-00395-32420-06808-58269-41877-63577

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, checked-by: src/vdbeapi.c, tcl/capi3.test, th3/req1/column01.test, matrix: context, detail)

R-12804-26213-16166-58523-53387-54270-64862-30854

The highest recorded value is returned in *pHighwater. (source: c3ref/status.html, matrix: context, detail)

R-12830-59321-61911-43156-38228-08390-44545-62549

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, matrix: context, detail)

R-12831-20703-43607-22542-46423-65070-13678-01417

The query string consists of text following the first "?" character but excluding the optional fragment that begins with "#". (source: uri.html, matrix: context, detail)

R-12881-55998-05997-62769-52407-41437-37652-18188

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, matrix: context, detail)

R-12895-64156-28673-05493-20672-24033-21713-05965

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, matrix: context, detail)

R-12940-37052-20666-01661-57871-26003-21807-26945

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: tcl/sqllimits1.test, th3/req1/limit02.test, matrix: context, detail)

R-12970-05880-15397-14967-05801-18246-49491-02402

SQLite will not use more than one scratch buffers per thread. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/malloc.c, matrix: context, detail)

R-12976-22893-11163-42545-13145-11346-20238-07010

Value is the integer 0. (source: fileformat2.html, checked-by: src/vdbeaux.c, th3/req1/fileformat02.test, matrix: context, detail)

R-12993-07777-64601-19102-35955-36137-03402-56962

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, matrix: context, detail)

R-13024-05443-37707-54511-29409-48512-10836-53316

Unrecognized arguments are silently ignored. (source: fileformat2.html, matrix: context, detail)

R-13053-11096-22952-42489-44628-35475-18449-44243

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, matrix: context, detail)

R-13057-33448-09671-56974-58075-51862-56508-46386

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, matrix: context, detail)

R-13091-00020-15519-35390-14824-01225-60609-32585

Note that the authorizer callback is invoked only during sqlite3_prepare() or its variants. (source: c3ref/set_authorizer.html, matrix: context, detail)

R-13160-27901-08319-02808-35967-30729-30833-45529

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, matrix: context, detail)

R-13161-58512-18507-02027-33184-52817-40400-65254

The subquery and the outer query do not both have ORDER BY clauses. (source: optoverview.html, matrix: context, detail)

R-13164-16564-32961-63761-40355-01269-15862-60679

Otherwise, if no error occurs, sqlite3_db_cacheflush() returns SQLITE_OK. (source: c3ref/db_cacheflush.html, matrix: context, detail)

R-13183-30817-63475-03286-24149-37029-58658-28178

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, matrix: context, detail)

R-13210-09522-30167-47682-54328-15503-65010-64185

Each entry in the table b-tree corresponds to a row of the SQL table. (source: fileformat2.html, matrix: context, detail)

R-13213-41488-02030-47502-00091-07142-55228-59045

The string returned by sqlite_source_id() is the date and time that the source code was checked in followed by the SHA1 hash for that check-in. (source: lang_corefunc.html, checked-by: th3/req1/func03.test, matrix: context, detail)

R-13245-13613-20612-29669-51853-01593-36495-38547

SQLITE_BUSY means that the database engine was unable to acquire the database locks it needs to do its job. (source: c3ref/step.html, matrix: context, detail)

R-13264-56530-15604-47190-64669-54938-51022-12155

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, matrix: context, detail)

R-13279-06508-34532-04763-41016-09422-12015-14257

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, matrix: context, detail)

R-13285-62035-35936-10913-00565-06121-60242-30149


(source: syntax/expr.html, matrix: context, detail)

R-13307-42286-48132-20191-27230-43917-16761-31093

The sqlite3_memory_used() routine returns the number of bytes of memory currently outstanding (malloced but not freed). (source: c3ref/memory_highwater.html, matrix: context, detail)

R-13324-20915-18608-14135-49913-18477-24470-37665

When two BLOB values are compared, the result is determined using memcmp(). (source: datatype3.html, checked-by: th3/req1/datatype3_04.test, matrix: context, detail)

R-13337-13961-14137-09012-22007-31627-17736-61931

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, matrix: context, detail)

R-13345-31830-42625-35192-25815-10226-10074-63536

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, matrix: context, detail)

R-13380-27850-48182-47987-05437-06690-53655-55495

This option is used to enable or disable the two-argument version of the fts3_tokenizer() function which is part of the FTS3 full-text search engine extension. (source: c3ref/c_dbconfig_enable_fkey.html, matrix: context, detail)

R-13435-26311-61176-01189-39199-58705-21930-17615

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, matrix: context, detail)

R-13439-14752-32196-09382-64767-42844-00603-31803

The CREATE VIEW command assigns a name to a pre-packaged SELECT statement. (source: lang_createview.html, checked-by: th3/req1/view01.test, matrix: context, detail)

R-13480-46087-00976-25355-37821-19976-64055-41594

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, matrix: context, detail)

R-13512-64012-34604-11605-36367-14798-29892-18682

In a compound SELECT, only the last or right-most simple SELECT may contain a LIMIT clause. (source: lang_select.html, checked-by: tcl/limit.test, th3/req1/select02.test, matrix: context, detail)

R-13523-04394-10297-34543-39920-38715-25686-62539

The second integer on a freelist trunk page is the number of leaf page pointers to follow. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-13547-45635-56676-46930-62295-21423-36076-50678

The default isolation level for SQLite is SERIALIZABLE. (source: pragma.html, matrix: context, detail)

R-13549-01731-45628-33361-33638-05320-24749-58227

When immutable is set, SQLite assumes that the database file cannot be changed, even by a process with higher privilege, and so the database is opened read-only and all locking and change detection is disabled. (source: c3ref/open.html, checked-by: th3/cov1/nolock01.test, matrix: context, detail)

R-13561-46814-58902-48141-34775-52925-09120-28270

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, matrix: context, detail)

R-13591-51789-59523-18205-42201-39107-10748-36836

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, matrix: context, detail)

R-13593-05152-64764-04192-23453-35097-07783-21770

The application_id PRAGMA is used to query or set the 32-bit unsigned big-endian "Application ID" integer located at offset 68 into the database header. (source: pragma.html, checked-by: th3/cov1/pragma20.test, matrix: context, detail)

R-13595-45863-41975-17982-37007-43143-15451-31635

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, matrix: context, detail)

R-13615-19528-18270-26667-29979-02127-30381-22829

A 3-dimensional R*Tree has 7 columns. (source: rtree.html, matrix: context, detail)

R-13680-39071-55665-32597-06847-40698-32535-24028

The file change counter is a 4-byte big-endian integer at offset 24 that is incremented whenever the database file is unlocked after having been modified. (source: fileformat2.html, matrix: context, detail)

R-13748-40725-63284-41855-27070-22763-27401-30101

The current value of the requested counter is returned. (source: c3ref/stmt_status.html, matrix: context, detail)

R-13776-21310-53568-57098-48778-28371-47670-31301

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, matrix: context, detail)

R-13779-07711-12405-44335-29719-17285-28240-52263

As long as exactly one connection is using a shared-memory wal-index, the locking mode can be changed freely between NORMAL and EXCLUSIVE. (source: wal.html, checked-by: tcl/e_wal.test, th3/req1/pragma05.test, matrix: context, detail)

R-13793-11620-18643-36656-33877-44501-53404-27731

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, matrix: context, detail)

R-13825-09904-57638-18756-48748-29351-18570-35078

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, matrix: context, detail)

R-13846-35797-43647-43739-38644-55287-36020-16236

The random() function returns a pseudo-random integer between -9223372036854775808 and +9223372036854775807. (source: lang_corefunc.html, checked-by: th3/req1/func03.test, matrix: context, detail)

R-13861-56665-11866-23865-35263-00368-63176-40609

PRAGMA schema.cache_size; PRAGMA schema.cache_size = pages; PRAGMA schema.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: tcl/pragma.test, th3/req1/pragma09.test, matrix: context, detail)

R-13870-45783-04772-14716-53904-46370-14954-15973

The sqlite3_load_extension() interface attempts to load an SQLite extension library contained in the file zFile. (source: c3ref/load_extension.html, matrix: context, detail)

R-13876-13274-06329-28290-52708-34927-05709-26395

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, matrix: context, detail)

R-13877-64542-39833-15687-62784-10394-38782-49019

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, matrix: context, detail)

R-13903-46567-21188-22822-60227-64496-63410-06513

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, matrix: context, detail)

R-13931-10421-35283-26355-06468-08264-20065-34151

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 0|0|0|EXECUTE SCALAR SUBQUERY 1 1|0|0|SEARCH TABLE t1 USING COVERING INDEX i2 (a=?) 0|0|0|EXECUTE CORRELATED SCALAR SUBQUERY 2 2|0|0|SEARCH TABLE t1 USING INDEX i3 (b=?) (source: eqp.html, checked-by: tcl/eqp.test, matrix: context, detail)

R-13943-13592-05756-02149-18071-59821-47409-19193

A NULL result is considered untrue when evaluating WHEN terms. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-13958-53419-49614-06664-47934-29028-23296-04281

Supported unary prefix operators are these: - + ~ NOT (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-13981-28768-38524-42691-40554-58455-18349-16495

And a 5-dimensional R*Tree has 11 columns. (source: rtree.html, matrix: context, detail)

R-14014-59687-26564-37068-45971-48448-09846-38995

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, matrix: context, detail)

R-14034-00929-27099-16044-59671-40921-25544-35067

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, checked-by: tcl/e_walhook.test, matrix: context, detail)

R-14054-28168-18904-50700-49610-53857-56121-06395

The special encoding rules for columns with REAL affinity apply to WITHOUT ROWID tables the same as they do with rowid tables. (source: fileformat2.html, matrix: context, detail)

R-14068-49671-08903-14280-45288-40590-58798-59213

Parameters that are not assigned values using sqlite3_bind() are treated as NULL. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-14099-28081-41654-53120-44875-00301-46355-06140

If the commit hook returns non-zero, then the COMMIT is converted into a ROLLBACK. (source: c3ref/commit_hook.html, matrix: context, detail)

R-14168-07579-40145-07578-27946-11279-56601-46509

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, matrix: context, detail)

R-14174-63475-36300-18663-27828-32664-44187-42924

If any other error occurs while flushing dirty pages to disk (for example an IO error or out-of-memory condition), then processing is abandoned and an SQLite error code is returned to the caller immediately. (source: c3ref/db_cacheflush.html, matrix: context, detail)

R-14184-13732-63564-17158-02009-26231-20937-39061

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, matrix: context, detail)

R-14195-12074-64677-06793-17072-43123-33020-17925

PRAGMA recursive_triggers; PRAGMA recursive_triggers = boolean; Query, set, or clear the recursive trigger capability. (source: pragma.html, matrix: context, detail)

R-14208-23986-02817-62350-58798-64603-05852-18001

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, matrix: context, detail)

R-14213-41276-38760-54552-34093-20752-64281-40652

If the function pointer is NULL, the sqlite3_log() interface becomes a no-op. (source: c3ref/c_config_covering_index_scan.html, checked-by: th3/cov1/log01.test, matrix: context, detail)

R-14222-20715-36794-58646-49579-04398-47433-20385

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, matrix: context, detail)

R-14302-38934-55936-51388-09326-06316-22131-13547

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, matrix: context, detail)

R-14303-42483-31616-40850-13979-44263-42291-56182

If database zDb is the name of an attached database that is not in WAL mode, SQLITE_OK is returned and both *pnLog and *pnCkpt set to -1. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, matrix: context, detail)

R-14310-64553-52878-24653-31344-14066-48757-18483

1 if the index-column is a key column and 0 if the index-column is an auxiliary column. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15x.test, matrix: context, detail)

R-14349-34154-22313-18444-03285-54966-26711-64366

Note that the order of the rules for determining column affinity is important. (source: datatype3.html, checked-by: th3/req1/datatype3_01.test, matrix: context, detail)

R-14350-06824-15886-23716-53356-08607-64991-22845

If write-ahead log mode is disabled, this pragma is a harmless no-op. (source: pragma.html, checked-by: th3/req1/pragma29.test, matrix: context, detail)

R-14350-55458-23472-59439-25847-10170-60896-21467

If no successful INSERTs into rowid tables have ever occurred on the database connection D, then sqlite3_last_insert_rowid(D) returns zero. (source: c3ref/last_insert_rowid.html, checked-by: th3/cov1/withoutrowid01.test, matrix: context, detail)

R-14374-42468-63596-09513-53214-31321-61248-26314

This option sets the threading mode to Multi-thread. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, matrix: context, detail)

R-14396-37867-24413-20088-54172-40989-25899-41989

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, matrix: context, detail)

R-14413-31567-12478-15952-22976-18615-46799-38246

The schema of the sqlite_stat1 table is as follows: CREATE TABLE sqlite_stat1(tbl,idx,stat); (source: fileformat2.html, matrix: context, detail)

R-14428-50133-01194-47236-05116-05687-25228-52456

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, matrix: context, detail)

R-14442-41305-19421-12764-11199-11923-26443-20423

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, matrix: context, detail)

R-14450-37597-62750-52193-20411-23547-30776-32199

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_covering_index_scan.html, checked-by: src/main.c, th3/th3main.c, matrix: context, detail)

R-14451-19951-27480-60238-09584-48372-64711-58964

If N is zero then memory mapped I/O is disabled. (source: pragma.html, matrix: context, detail)

R-14505-63184-58138-52966-27681-02252-30754-64236

An INTEGER or REAL value is less than any TEXT or BLOB value. (source: datatype3.html, checked-by: th3/req1/datatype3_04.test, matrix: context, detail)

R-14522-26183-36808-38782-13052-12335-19619-11308

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, matrix: context, detail)

R-14553-34013-61751-37329-34569-35054-62588-04416

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, matrix: context, detail)

R-14560-62209-22846-15269-26800-65188-24586-57276

The sqlite3_blob_bytes() interface returns the size of the BLOB in bytes. (source: c3ref/blob.html, checked-by: th3/cov1/vdbeblob01.test, matrix: context, detail)

R-14606-31564-30448-03385-20591-46329-55460-01385

Value is a BLOB that is (N-12)/2 bytes in length. (source: fileformat2.html, checked-by: src/vdbeaux.c, th3/req1/fileformat02.test, matrix: context, detail)

R-14672-19530-25387-57734-27624-49837-27929-41109

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, matrix: context, detail)

R-14708-27487-63029-62326-38556-29353-26608-43462

If either X or Y are NULL in instr(X,Y) then the result is NULL. (source: lang_corefunc.html, checked-by: tcl/instr.test, matrix: context, detail)

R-14744-61161-64598-20723-40374-11950-32585-46634

Bindings are not cleared by the sqlite3_reset() routine. (source: c3ref/bind_blob.html, checked-by: th3/req1/bind01.test, matrix: context, detail)

R-14755-58619-21710-46731-49779-58295-52088-49443

If a schema name is specified, then only that one schema is searched for the named object. (source: lang_naming.html, checked-by: tcl/e_resolve.test, matrix: context, detail)

R-14786-64066-57173-54332-48842-61932-26767-55226

The fourth parameter to the preupdate callback is the name of the database within the database connection that is being modified. This will be "main" for the main database or "temp" for TEMP tables or the name given after the AS keyword in the ATTACH statement for attached databases. (source: c3ref/preupdate_count.html, matrix: context, detail)

R-14809-12532-29849-37931-55866-36288-34668-62105

Every column of every table has an associated collating function. (source: datatype3.html, checked-by: th3/req1/datatype3_09.test, matrix: context, detail)

R-14816-14138-45914-00386-55030-19688-47427-16370

The sqlite3_mutex_enter() and sqlite3_mutex_try() routines attempt to enter a mutex. (source: c3ref/mutex_alloc.html, matrix: context, detail)

R-14849-03112-38963-62729-29148-05524-00081-49320

The sqlite3_table_column_metadata() interface returns SQLITE_ERROR and if the specified column does not exist. (source: c3ref/table_column_metadata.html, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-14854-58090-42318-16758-11511-55845-43125-55221

The xShutdown method is only called from sqlite3_shutdown() so it does not need to be threadsafe either. (source: c3ref/pcache_methods2.html, matrix: context, detail)

R-14875-52970-09502-55318-65489-30403-63848-22858

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, matrix: context, detail)

R-14900-25557-31284-25680-22043-43161-06380-24221

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, matrix: context, detail)

R-14926-50129-46614-17358-58969-23562-31943-57141

For the purposes of grouping rows, NULL values are considered equal. (source: lang_select.html, checked-by: tcl/e_select.test, matrix: context, detail)

R-14939-58295-46667-49876-44919-10267-12133-09440

For indexes on WITHOUT ROWID tables, N will be the number of columns indexed plus the number of columns in the primary key. (source: fileformat2.html, matrix: context, detail)

R-14970-42377-34844-46496-15895-42662-06341-12505

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, matrix: context, detail)

R-15060-13876-27196-24328-29262-37207-52735-33647

A 1-dimensional R*Tree thus has 3 columns. (source: rtree.html, matrix: context, detail)

R-15063-51342-39351-23162-57397-34240-32875-44138

A zero is returned if no matching parameter is found. (source: c3ref/bind_parameter_index.html, checked-by: th3/req1/bind03.test, matrix: context, detail)

R-15067-52851-39310-09608-48928-40262-32010-41531

The registration remains valid until it is replaced by a different module or until the database connection closes. (source: c3ref/module.html, matrix: context, detail)

R-15078-25200-47597-45134-52626-09709-11803-57181

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, matrix: context, detail)

R-15111-17896-62926-21896-36187-36992-24278-56286

Numeric values (serial types 1 through 9) sort after NULLs and in numeric order. (source: fileformat2.html, checked-by: th3/req1/fileformat05.test, matrix: context, detail)

R-15142-18077-19638-26452-28411-07428-50333-27294

A new R*Tree index is created as follows: CREATE VIRTUAL TABLE USING rtree(); (source: rtree.html, matrix: context, detail)

R-15162-34851-63939-05950-21084-00823-32030-36120

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, matrix: context, detail)

R-15172-56782-14433-51557-38019-58913-08243-11771

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, matrix: context, detail)

R-15179-00775-17006-23705-43111-64529-05716-35122

The N-th integer (for N>1) is the estimated average number of rows in the index which have the same value for the first N-1 columns. (source: fileformat2.html, matrix: context, detail)

R-15199-61389-24637-25675-62796-22180-46893-15939

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, matrix: context, detail)

R-15218-64377-10732-10708-39996-49168-39639-07301


(source: syntax/join-clause.html, matrix: context, detail)

R-15250-32031-29902-43107-55645-15949-41885-09210

The solution to enforcing one leader per team is to create a unique index on team_id but restricted to those entries for which is_team_leader is true: CREATE UNIQUE INDEX team_leader ON person(team_id) WHERE is_team_leader; (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-15264-45364-33795-29086-26475-46082-16234-09444

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, matrix: context, detail)

R-15279-42727-36622-43533-51632-55419-55302-44871

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, matrix: context, detail)

R-15283-49521-12983-52199-46141-26319-45151-22196

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, matrix: context, detail)

R-15313-19540-00987-59181-43377-13803-46289-24513

The name for the collating sequence used to compare values in the index-column. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15x.test, matrix: context, detail)

R-15326-32258-55998-27349-46389-10665-40357-65139

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, matrix: context, detail)

R-15331-08345-58118-19144-46490-41902-30698-42442

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_covering_index_scan.html, checked-by: th3/cov1/log01.test, matrix: context, detail)

R-15334-58407-28961-30248-32119-35017-40136-56612

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, matrix: context, detail)

R-15356-65223-28934-39981-61264-10821-14188-49484

SQLite does not use the lock-byte page. (source: fileformat2.html, matrix: context, detail)

R-15363-55230-31292-18565-56039-36923-37219-31589

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, matrix: context, detail)

R-15400-09401-11917-03904-29330-15741-54444-34897

A keyword enclosed in square brackets is an identifier. (source: lang_keywords.html, checked-by: th3/req1/keyword01.test, matrix: context, detail)

R-15402-03103-21390-36962-23389-49198-06887-52060

PRAGMA schema.foreign_key_check; PRAGMA schema.foreign_key_check(table-name); (source: pragma.html, checked-by: tcl/fkey5.test, th3/cov1/fkey23.test, matrix: context, detail)

R-15417-28014-30557-42534-17582-00197-65121-60035

Indices are not required for child key columns (source: foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys07.test, matrix: context, detail)

R-15442-09728-53714-13219-50103-51559-23392-54573

Furthermore, the data_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/data_directory.html, matrix: context, detail)

R-15465-20813-03488-35934-00721-06683-61343-58043

The maximum and minimum embedded payload fractions and the leaf payload fraction values must be 64, 32, and 32. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-15506-57666-56346-10655-27907-33619-59147-37222

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, checked-by: tcl/hook.test, th3/cov1/main15.test, matrix: context, detail)

R-15514-65163-22430-27593-57969-12482-41561-35461

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, matrix: context, detail)

R-15522-56042-47189-16162-53355-39499-48752-21999

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, matrix: context, detail)

R-15548-18334-64551-32138-25458-60589-38835-29955

If the largest root b-tree page value is zero, then the database must not contain ptrmap pages. (source: fileformat2.html, matrix: context, detail)

R-15554-05778-32243-62840-23566-06701-05501-03594

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, matrix: context, detail)

R-15569-63625-32025-44445-56996-41662-23877-23571

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, matrix: context, detail)

R-15572-63310-25640-21443-38928-49206-01158-44169

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, matrix: context, detail)

R-15591-29646-42277-29522-47431-15135-45139-14151

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/req1/datacnt01.test, th3/th3util.c, matrix: context, detail)

R-15607-52988-55821-17631-36260-55856-06121-21546

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, matrix: context, detail)

R-15618-12639-40629-36536-35814-47765-39575-62705

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, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-15620-41309-18590-43642-05731-59843-28363-36322

In this case the call to sqlite3_backup_step() can be retried later. (source: c3ref/backup_finish.html, matrix: context, detail)

R-15629-60483-22088-30931-50587-36197-35177-56236

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, matrix: context, detail)

R-15672-33611-05081-27963-61291-19773-24542-63496

PRAGMA schema.page_count; Return the total number of pages in the database file. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma12.test, matrix: context, detail)

R-15704-22093-19659-04811-31747-18777-12777-21799

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, matrix: context, detail)

R-15707-53749-16663-50259-17040-65136-59107-02793

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, matrix: context, detail)

R-15737-42560-39966-60421-02348-13704-23907-48839

Keyword arguments can optionally appear in quotes. (source: pragma.html, checked-by: th3/req1/pragma01.test, matrix: context, detail)

R-15741-50893-04622-59701-05174-07929-61978-12539

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, matrix: context, detail)

R-15796-47513-29721-16055-11683-21050-32207-60873

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, matrix: context, detail)

R-15800-25719-02234-49112-58438-56406-07161-16214

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, checked-by: tcl/indexedby.test, matrix: context, detail)

R-15807-22461-03820-63759-43480-30184-16184-55723

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, matrix: context, detail)

R-15818-17128-00123-39161-32371-64598-56479-09338

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, matrix: context, detail)

R-15825-58263-40535-43132-40682-17971-55847-38484

The psow query parameter overrides the powersafe overwrite property of the database file being opened. (source: uri.html, matrix: context, detail)

R-15842-53296-08003-60856-35696-17823-54223-09480

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, matrix: context, detail)

R-15867-30493-08974-44645-42836-18647-48672-50550

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, checked-by: th3/req1/expr01.test, matrix: context, detail)

R-15888-36326-49147-46840-54698-34618-50911-39482

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, matrix: context, detail)

R-15909-61171-23810-45611-13574-21954-09176-43834

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, matrix: context, detail)

R-15958-50233-58629-08203-04879-28676-03150-11250

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, matrix: context, detail)

R-15968-48708-39759-44208-63382-65413-21684-48201

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, matrix: context, detail)

R-15996-49369-09216-34166-12668-33958-11442-01163

This function returns the number of rows modified, inserted or deleted by the most recently completed INSERT, UPDATE or DELETE statement on the database connection specified by the only parameter. (source: c3ref/changes.html, checked-by: tcl/e_changes.test, matrix: context, detail)

R-15997-27576-09912-47070-23601-24983-46411-48984

PRAGMA read_uncommitted; PRAGMA read_uncommitted = boolean; Query, set, or clear READ UNCOMMITTED isolation. (source: pragma.html, matrix: context, detail)

R-16028-39081-19377-46684-10718-53381-04734-64750

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, matrix: context, detail)

R-16046-57096-05363-52910-04894-60844-28556-45944

If the "unordered" argument is present, then the query planner assumes that the index is unordered and will not use the index for a range query or for sorting. (source: fileformat2.html, checked-by: th3/cov1/unordered01.test, matrix: context, detail)

R-16057-55834-34183-27727-54013-42481-60412-05224

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, matrix: context, detail)

R-16074-54196-43824-25031-17914-10655-20694-13926

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, matrix: context, detail)

R-16085-53730-63732-38499-15956-61706-03515-37986

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, matrix: context, detail)

R-16127-35442-25332-57824-03233-02546-37060-55461

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, matrix: context, detail)

R-16179-57541-27339-65229-35614-47877-55057-18753

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, matrix: context, detail)

R-16185-00071-09955-21762-46377-47789-41533-03861

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, matrix: context, detail)

R-16230-40037-23249-35634-11042-62086-60136-18681

The LIKE and GLOB optimizations consist of adding two virtual terms like this: column >= x AND column < y (source: optoverview.html, matrix: context, detail)

R-16262-20798-18081-17023-40907-44361-41056-32016

If X is a string then characters indices refer to actual UTF-8 characters. (source: lang_corefunc.html, checked-by: th3/cov1/func02.test, matrix: context, detail)

R-16263-09274-39662-25002-11330-48229-57034-52902

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/th3testvfs.c, matrix: context, detail)

R-16315-56881-31877-40762-35289-40185-03417-40758

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, matrix: context, detail)

R-16333-64433-39289-13667-32304-47493-49006-13545

Checkpoint as many frames as possible without waiting for any database readers or writers to finish, then sync the database file if all frames in the log were checkpointed. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, th3/req1/checkpoint01.test, matrix: context, detail)

R-16335-41477-51529-00085-31320-00976-56017-05968

The implementation of the new function always causes an exception to be thrown. (source: c3ref/overload_function.html, matrix: context, detail)

R-16368-45976-00872-58854-24152-50721-64128-13057

If the specified column is "rowid", "oid" or "_rowid_" and the table is not a WITHOUT ROWID table and an INTEGER PRIMARY KEY column has been explicitly declared, then the output parameters are set for the explicitly declared column. (source: c3ref/table_column_metadata.html, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-16414-44626-57508-12770-26365-35758-32257-17918

strftime(format, timestring, modifier, modifier, ...) (source: lang_datefunc.html, checked-by: th3/req1/date01.test, matrix: context, detail)

R-16423-47210-04827-18220-00892-21798-11379-58569

SQLITE_CONFIG_LOOKASIDE sets the default lookaside size. The SQLITE_DBCONFIG_LOOKASIDE option to sqlite3_db_config() can be used to change the lookaside configuration on individual connections. (source: c3ref/c_config_covering_index_scan.html, matrix: context, detail)

R-16446-38486-52659-45236-06548-25582-51186-33834


(source: syntax/signed-number.html, matrix: context, detail)

R-16465-40078-63621-42444-05703-20205-45309-57719

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, matrix: context, detail)

R-16489-33536-23753-27840-15577-08736-43956-56461

The "const char *" variable pointed to by the T parameter will be set to a zero-terminated UTF-8 string containing the EXPLAIN QUERY PLAN description for the X-th loop. (source: c3ref/c_scanstat_est.html, checked-by: th3/cov1/status02.test, matrix: context, detail)

R-16566-16123-02807-20883-30772-24192-15588-47043

If the fourth parameter to sqlite3_bind_text() or sqlite3_bind_text16() is negative, then 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, matrix: context, detail)

R-16584-60189-60940-01835-35282-37415-55139-16536

The LIKE operator does a pattern matching comparison. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-16618-15294-40098-25515-23421-58217-44729-28455

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, matrix: context, detail)

R-16625-30785-18660-34070-49109-22249-51329-26220

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, matrix: context, detail)

R-16642-42503-02054-10937-29863-20492-60012-48807

If pnLog is not NULL, then *pnLog is set to the total number of frames in the log file or to -1 if the checkpoint could not run because of an error or because the database is not in WAL mode. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, matrix: context, detail)

R-16646-21584-46697-05681-31663-32907-36469-00200

Assuming that customer records are stored in the "customers" table, and that order records are stored in the "orders" table, the following UPDATE trigger ensures that all associated orders are redirected when a customer changes his or her address: CREATE TRIGGER update_customer_address UPDATE OF address ON customers BEGIN UPDATE orders SET address = new.address WHERE customer_name = old.name; END; With this trigger installed, executing the statement: UPDATE customers SET address = '1 Main St.' WHERE name = 'Jack Jones'; causes the following to be automatically executed: UPDATE orders SET address = '1 Main St.' WHERE customer_name = 'Jack Jones'; (source: lang_createtrigger.html, matrix: context, detail)

R-16666-59030-30817-34815-20726-22427-22916-09536


(source: syntax/attach-stmt.html, checked-by: th3/req1/attach01.test, matrix: context, detail)

R-16667-09772-49719-31383-20699-54843-21151-14987

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, matrix: context, detail)

R-16677-54172-01660-13905-64102-51935-20932-64314

All spaces following the first two keywords are converted into a single space. (source: fileformat2.html, matrix: context, detail)

R-16678-63672-23479-17788-13288-21597-25259-37744

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, matrix: context, detail)

R-16717-50504-54717-12200-54209-43488-56382-57633

Each R*Tree index is a virtual table with an odd number of columns between 3 and 11. (source: rtree.html, matrix: context, detail)

R-16735-29088-33516-22402-46874-28284-28835-57919

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, matrix: context, detail)

R-16748-44311-29408-30496-47489-38562-34902-17551

If the specified table is actually a view, an error code is returned. (source: c3ref/table_column_metadata.html, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-16775-34716-48016-59856-43563-01952-64923-08515

You cannot DELETE, INSERT, or UPDATE a view. (source: lang_createview.html, checked-by: slt/slt_lang_createview.test, th3/req1/view01.test, matrix: context, detail)

R-16824-07538-50218-17384-27705-17061-18390-01878

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, matrix: context, detail)

R-16876-26469-56495-43773-04643-04870-06914-01150

However, in many cases you can use an INSTEAD OF trigger on the view to accomplish the same thing. (source: lang_createview.html, matrix: context, detail)

R-16907-50223-28692-47460-07440-02664-00215-50680

The SQL syntax for custom queries is the same regardless of which interface, sqlite3_rtree_geometry_callback() or sqlite3_rtree_query_callback(), is used to register the SQL function. (source: rtree.html, matrix: context, detail)

R-16960-46772-37295-51769-03234-47143-37776-03273

The xSetSystemCall(), xGetSystemCall(), and xNestSystemCall() interfaces are not used by the SQLite core. (source: c3ref/vfs.html, matrix: context, detail)

R-17002-27534-60658-04301-02636-10331-43886-13324

The %z format is interchangeable with %s. (source: lang_corefunc.html, checked-by: tcl/printf2.test, th3/cov1/printf08.test, matrix: context, detail)

R-17004-26469-33978-15550-51185-63234-25288-10208

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, matrix: context, detail)

R-17039-33674-48721-19365-01161-03583-42602-47199

If this global variable is made to point to a string which is the name of a folder (a.k.a. directory), then all database files specified with a relative pathname and created or accessed by SQLite when using a built-in windows VFS will be assumed to be relative to that directory. (source: c3ref/data_directory.html, matrix: context, detail)

R-17042-32466-08129-56782-39216-07667-22453-46462

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, checked-by: th3/cov1/main15.test, matrix: context, detail)

R-17066-08509-20793-46689-03241-48208-02822-18117

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, matrix: context, detail)

R-17100-46000-36927-33778-08378-49986-19867-19918

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, matrix: context, detail)

R-17129-39366-12879-37953-16940-52651-36509-01278

The SQLITE_ENABLE_STAT3 and SQLITE_ENABLE_STAT4 options causes the ANALYZE command to collect a histogram of column content in the sqlite_stat3 or sqlite_stat4 tables and to use this histogram to make a better guess at the best query to use for range constraints such as the above. (source: optoverview.html, matrix: context, detail)

R-17146-37073-08858-03066-53488-24451-10311-22699

Within a trigger program each INSERT, UPDATE and DELETE statement sets the value returned by sqlite3_changes() upon completion as normal. Of course, this value will not include any changes performed by sub-triggers, as the sqlite3_changes() value will be saved and restored after each sub-trigger has run. (source: c3ref/changes.html, checked-by: tcl/e_changes.test, matrix: context, detail)

R-17151-07205-10894-28299-62821-16887-02117-62221

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, matrix: context, detail)

R-17155-65128-55367-02909-54957-13687-23759-15796

Note that number of bytes stored on the index page is never less than M. (source: fileformat2.html, matrix: context, detail)

R-17170-44824-25231-14155-44143-54372-37097-06690

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, matrix: context, detail)

R-17186-50053-08160-14434-65470-31031-28806-57680

The busy-handler callback is never invoked in this mode. (source: pragma.html, checked-by: th3/req1/checkpoint01.test, matrix: context, detail)

R-17203-10061-39568-47821-02948-38975-34395-48032

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, matrix: context, detail)

R-17228-37124-21945-03605-09770-36410-30558-62639

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, matrix: context, detail)

R-17240-35716-59130-08615-61479-53865-13755-44261

SQLITE_DBSTATUS_DEFERRED_FKS This parameter returns zero for the current value if and only if all foreign key constraints (deferred or immediate) have been resolved. (source: c3ref/c_dbstatus_options.html, matrix: context, detail)

R-17269-58859-62979-20789-28373-02283-01402-32903

The pArg argument is passed through to the callback. (source: c3ref/commit_hook.html, matrix: context, detail)

R-17287-60737-33985-12645-22938-14534-06595-16406

Immediately following the wal-header are zero or more frames. (source: fileformat2.html, matrix: context, detail)

R-17313-07189-19129-06928-03198-35699-51824-58751

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, matrix: context, detail)

R-17329-35644-14084-44573-27599-05498-14002-35742

If both arguments X and Y to instr(X,Y) are non-NULL and are not BLOBs then both are interpreted as strings. (source: lang_corefunc.html, checked-by: tcl/instr.test, matrix: context, detail)

R-17341-41375-54397-54408-61756-02302-26643-35471

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, matrix: context, detail)

R-17379-32951-58399-57501-33498-60036-41846-10214

Any attempt to insert a duplicate entry will result in an error. (source: lang_createindex.html, checked-by: th3/req1/createidx01.test, matrix: context, detail)

R-17422-06514-52731-10932-24026-18729-00047-10893

The sqlite_master table contains one row for each table, index, view, and trigger (collectively "objects") in the database schema, except there is no entry for the sqlite_master table itself. (source: fileformat2.html, matrix: context, detail)

R-17446-42210-34693-14358-63736-15125-50788-14623

Like other SQL identifiers, schema names are case-insensitive. (source: lang_naming.html, checked-by: tcl/e_resolve.test, matrix: context, detail)

R-17458-15700-03472-60284-42134-49579-06923-34319

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, matrix: context, detail)

R-17482-00398-10630-63000-62255-53684-56492-08333

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, matrix: context, detail)

R-17492-23689-45221-32265-21110-48367-63159-32778

The SQLITE_CONFIG_HEAP option specifies a static memory buffer that SQLite will use for all of its dynamic memory allocation needs beyond those provided for by SQLITE_CONFIG_SCRATCH and SQLITE_CONFIG_PAGECACHE. (source: c3ref/c_config_covering_index_scan.html, checked-by: th3/th3main.c, matrix: context, detail)

R-17495-17419-60080-02439-41171-12294-54829-31710

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, th3/cov1/vacuum01.test, matrix: context, detail)

R-17497-43474-02755-40707-55508-06941-43855-44277

Likewise, registering a callback using sqlite3_wal_hook() disables the automatic checkpoint mechanism configured by this function. (source: c3ref/wal_autocheckpoint.html, checked-by: tcl/e_walauto.test, matrix: context, detail)

R-17503-25110-05842-17616-27745-25701-57748-55330

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, matrix: context, detail)

R-17503-44008-12544-16508-15108-35473-45615-30294

The default implementation stores all statistics in a single table named "sqlite_stat1". (source: lang_analyze.html, checked-by: th3/req1/analyze01.test, matrix: context, detail)

R-17527-22739-13874-05126-20619-29164-21106-56855

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, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-17535-15185-26123-07430-36338-10169-10447-08966

If foreign key constraints are enabled, a DROP TABLE command performs an implicit DELETE FROM command before removing the table from the database schema. (source: lang_droptable.html, checked-by: th3/req1/droptable01.test, matrix: context, detail)

R-17537-00183-53931-12298-10408-12793-18687-03447

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, matrix: context, detail)

R-17564-54218-01993-46231-42657-60991-50837-12624

If the resetFlag is true, then the highest record value is reset after *pHighwater is written. (source: c3ref/status.html, matrix: context, detail)

R-17579-15688-44175-34852-39551-28405-28214-64262

These interfaces are only available if SQLite is compiled using the SQLITE_ENABLE_PREUPDATE_HOOK compile-time option. (source: c3ref/preupdate_count.html, matrix: context, detail)

R-17591-50446-37876-17822-10375-27592-36497-28987

Boolean values are stored as integers 0 (false) and 1 (true). (source: datatype3.html, checked-by: th3/req1/datatype3_01.test, matrix: context, detail)

R-17596-52174-25214-41225-30917-27450-40075-28590

A particular database will use either a rollback journal or a WAL, but not both at the same time. (source: fileformat2.html, matrix: context, detail)

R-17615-49737-42602-31197-05538-64484-08202-17390

A negative number implies no limit. (source: pragma.html, checked-by: th3/req1/pragma26.test, matrix: context, detail)

R-17628-54414-54605-31939-57279-20393-13350-52356

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, matrix: context, detail)

R-17644-02150-10619-56225-58542-30426-53377-14747

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, matrix: context, detail)

R-17644-24322-63248-40281-26514-10793-04355-46693

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, matrix: context, detail)

R-17683-59594-13579-14757-04762-40863-05270-49270

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, matrix: context, detail)

R-17684-03275-18018-08876-61159-17187-00685-37913

Only ROWID values from previous transactions that were committed are considered. ROWID values that were rolled back are ignored and can be reused. (source: autoinc.html, checked-by: th3/req1/autoinc01.test, matrix: context, detail)

R-17719-44813-04835-03337-09891-18871-23593-16128

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, matrix: context, detail)

R-17719-64233-56665-24727-28694-41697-48581-47600

Each frame consists of a 24-byte frame-header followed by a page-size bytes of page data. (source: fileformat2.html, matrix: context, detail)

R-17746-39108-25168-47884-07203-13722-37711-19749

Pointers to the right of X refer to pages where all keys are greater than X. (source: fileformat2.html, matrix: context, detail)

R-17759-10613-53810-53402-33339-35108-00085-57750

Most R*Tree queries use a depth-first search. This is accomplished by setting the rScore equal to iLevel. (source: rtree.html, matrix: context, detail)

R-17768-43126-25682-30166-03658-34000-04918-35023

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, matrix: context, detail)

R-17805-37710-17139-40895-40838-31681-06316-29590

However, SQLite will nest the loops in a different order if doing so will help it to select better indices. (source: optoverview.html, matrix: context, detail)

R-17817-11638-56695-58140-59307-16910-19540-39427


(source: syntax/drop-view-stmt.html, checked-by: th3/cov1/build13.test, matrix: context, detail)

R-17817-46062-61072-05424-12542-62157-01447-33721

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, matrix: context, detail)

R-17840-50075-33076-39937-50165-09009-15721-26614

In ordinary indexes, there is exactly one entry in the index for every row in the table. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-17846-38304-36602-38159-60525-20130-23266-48850

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, matrix: context, detail)

R-17847-41579-08261-19893-13376-57099-17968-14055

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, matrix: context, detail)

R-17874-21123-26215-56857-37279-50732-34133-47276

The first column of an SQLite R*Tree is similar to an integer primary key column of a normal SQLite table. (source: rtree.html, matrix: context, detail)

R-17878-35294-47697-18266-55769-35956-00477-22042

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, matrix: context, detail)

R-17899-04554-16139-08865-17180-48146-22421-25181

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, matrix: context, detail)

R-17926-09424-52325-52888-31926-01436-23382-42237

The statistics gathered by this scan are stored in special database tables names shows names all begin with "sqlite_stat". (source: optoverview.html, matrix: context, detail)

R-17939-38828-17695-42161-08728-29310-38414-12197

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, matrix: context, detail)

R-17957-41878-23952-00530-42808-37166-56745-23900

In the following query, the optimizer is free to reorder the tables of FROM clause anyway it sees fit: SELECT * FROM node AS n1, edge AS e, node AS n2 WHERE n1.name = 'alice' AND n2.name = 'bob' AND e.orig = n1.id AND e.dest = n2.id; (source: optoverview.html, matrix: context, detail)

R-18023-38297-26646-57171-09733-60965-00209-38549

EXTRA synchronous is like FULL with the addition that the directory containing a rollback journal is synced after that journal is unlinked to commit a transaction in DELETE mode. (source: pragma.html, matrix: context, detail)

R-18043-40700-22598-52813-64197-51522-53393-10304

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, matrix: context, detail)

R-18085-46797-38544-57069-39269-06542-00638-19188

numeric arguments in parentheses that following the type name (ex: "VARCHAR(255)") are ignored (source: datatype3.html, checked-by: th3/req1/datatype3_02.test, matrix: context, detail)

R-18088-57186-13089-35997-22868-17352-00310-65503

For example, let the index be CREATE INDEX ex1 ON tab1(a,b) WHERE a=5 OR b=6; And let the query be: SELECT * FROM tab1 WHERE b=6 AND a=7; -- uses partial index Then the index is usable by the query because the "b=6" term appears in both the index definition and in the query. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-18130-23470-26620-07261-16274-17871-22790-47651

This interface enables or disables both the C-API sqlite3_load_extension() and the SQL function load_extension(). (source: c3ref/enable_load_extension.html, matrix: context, detail)

R-18143-12121-25249-36193-24562-40889-39176-48672

Value is the integer 1. (source: fileformat2.html, checked-by: src/vdbeaux.c, th3/req1/fileformat02.test, matrix: context, detail)

R-18160-43138-45730-29033-18368-13452-34551-31953

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, matrix: context, detail)

R-18160-48734-12487-09997-11031-61003-43897-08278

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, matrix: context, detail)

R-18190-43830-34676-47582-56241-44977-21337-20567

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, matrix: context, detail)

R-18219-48316-63080-50419-00617-04513-48558-33147

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, matrix: context, detail)

R-18232-39104-31806-20551-06401-15021-42756-14177

The TEMP or TEMPORARY keyword is removed if it occurs after the initial CREATE keyword. (source: fileformat2.html, matrix: context, detail)

R-18261-05736-40874-08637-62312-01294-07527-53761


(source: syntax/conflict-clause.html, checked-by: th3/req1/conflict01.test, matrix: context, detail)

R-18347-31070-03027-11066-56518-02178-55511-27886

NULL values (serial type 0) sort first. (source: fileformat2.html, checked-by: th3/req1/fileformat05.test, matrix: context, detail)

R-18369-35089-02774-53882-33695-33553-03042-04730

In each such row, the sqlite_stat.stat column will be a string consisting of a list of integers followed by zero or more arguments. (source: fileformat2.html, matrix: context, detail)

R-18401-29434-64954-06986-64183-65174-36377-46247

The ROLLBACK TO command reverts the state of the database back to what it was just after the corresponding SAVEPOINT. (source: lang_savepoint.html, matrix: context, detail)

R-18415-27776-07007-60952-17009-63601-11235-60103

For the purposes of the DEFAULT clause, an expression is considered constant if it does contains no sub-queries, column or table references, bound parameters, or string literals enclosed in double-quotes instead of single-quotes. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-18439-38548-20374-55698-53430-21042-59445-48532

In other words, if the left-hand dataset consists of Nleft rows of Mleft columns, and the right-hand dataset of Nright rows of Mright columns, then the cartesian product is a dataset of Nleft×Nright rows, each containing Mleft+Mright columns. (source: lang_select.html, checked-by: tcl/e_select.test, matrix: context, detail)

R-18444-13968-40811-25945-54439-20224-30854-05072

If the progress callback returns non-zero, the operation is interrupted. (source: c3ref/progress_handler.html, checked-by: th3/req1/progress01.test, matrix: context, detail)

R-18448-33677-24948-48953-25784-65474-15600-00219

If a schema-name is specified, it must be either "main", "temp", or the name of an attached database. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-18465-63076-46355-46123-39901-27541-22994-57422

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, matrix: context, detail)

R-18500-08619-10931-07451-20568-56201-09385-55546

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, matrix: context, detail)

R-18509-21923-06285-21395-08287-44781-54571-62637

In a well-formed sqlite_stat4 table, the samples for any single index must appear in the same order that they occur in the index. In other words, if entry S1 is earlier in the index b-tree than entry S2, then in the sqlite_stat4 table, sample S1 must have a smaller rowid than sample S2. (source: fileformat2.html, matrix: context, detail)

R-18547-52845-30240-29713-43116-28155-35660-14807

The nul terminator is not stored. (source: fileformat2.html, checked-by: th3/req1/fileformat02.test, matrix: context, detail)

R-18567-63872-28950-34991-21095-45728-61145-64681

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, matrix: context, detail)

R-18628-11938-58280-60424-32964-58816-64179-48454

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, matrix: context, detail)

R-18658-48735-17951-17191-40214-20850-63941-45114

The third parameter passed to the logger is log message after formatting via sqlite3_snprintf(). (source: c3ref/c_config_covering_index_scan.html, checked-by: th3/cov1/log01.test, matrix: context, detail)

R-18665-26680-08407-38690-15882-41528-44716-07525

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, matrix: context, detail)

R-18669-12610-19021-20460-56494-30622-24671-33359

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, matrix: context, detail)

R-18673-21346-54823-18159-41507-63066-50898-24427

The view to drop is identified by the view-name and optional schema-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, th3/cov1/build13.test, matrix: context, detail)

R-18684-41029-50457-11697-46944-61670-11271-59779

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, matrix: context, detail)

R-18692-17694-63404-11739-00590-02418-57066-37741

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, matrix: context, detail)

R-18701-28385-27325-47261-28842-16656-24212-49294

If sqlite3_realloc(X,N) returns NULL and N is positive, then the prior allocation is not freed. (source: c3ref/free.html, checked-by: th3/req1/malloc02.test, matrix: context, detail)

R-18705-33393-57819-41139-38249-59845-61429-28312

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, matrix: context, detail)

R-18711-35549-27220-03897-01638-65186-51204-23198

The ROLLBACK command without a TO clause rolls backs all transactions and leaves the transaction stack empty. (source: lang_savepoint.html, matrix: context, detail)

R-18721-11322-01126-64339-40438-59164-27470-15171

If the SQLITE_FCNTL_PRAGMA file control returns any result code other than SQLITE_OK or SQLITE_NOTFOUND, that means that the VFS encountered an error while handling the PRAGMA and the compilation of the PRAGMA fails with an error. (source: c3ref/c_fcntl_busyhandler.html, checked-by: th3/cov1/pragma24.test, matrix: context, detail)

R-18741-16139-46901-23037-06510-07608-27753-13735

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, matrix: context, detail)

R-18761-36601-52477-41858-50422-48259-26249-60600

There are three arguments to SQLITE_CONFIG_PAGECACHE: A pointer to 8-byte aligned memory (pMem), the size of each page cache line (sz), and the number of cache lines (N). (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, th3/cov1/main42.test, matrix: context, detail)

R-18773-06579-40569-18123-18199-49078-54792-42080

SQLITE_RANGE is returned if the parameter index is out of range. (source: c3ref/bind_blob.html, checked-by: th3/req1/bind01.test, matrix: context, detail)

R-18814-23501-09117-45657-61449-22992-54979-37312

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, matrix: context, detail)

R-18818-06259-05609-26467-03914-52420-50425-49000

A SAVEPOINT can be started either within or outside of a BEGIN...COMMIT. (source: lang_savepoint.html, matrix: context, detail)

R-18846-05946-40974-48701-32199-53032-10077-35779

With synchronous OFF (0), SQLite continues without syncing as soon as it has handed data off to the operating system. (source: pragma.html, matrix: context, detail)

R-18879-47479-26487-44670-60127-29624-08821-22011

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, matrix: context, detail)

R-18885-42713-55126-22349-03815-15805-20030-42091

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, matrix: context, detail)

R-18895-27365-20289-12607-60428-18477-59440-44133

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, matrix: context, detail)

R-18905-43385-19674-33809-21041-41142-07317-32919


(source: syntax/recursive-cte.html, matrix: context, detail)

R-18913-19355-04042-04396-26693-02137-35105-64598

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, checked-by: tcl/e_walhook.test, matrix: context, detail)

R-18927-01951-35709-41382-23039-58065-29475-65248

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, matrix: context, detail)

R-18962-08090-15768-27249-44223-08875-09432-04987

Hence, a cache created with bPurgeable false will never contain any unpinned pages. (source: c3ref/pcache_methods2.html, matrix: context, detail)

R-18964-51531-38235-16261-57269-07859-04237-25462

This function causes any pending database operation to abort and return at its earliest opportunity. (source: c3ref/interrupt.html, matrix: context, detail)

R-18968-56672-08189-06837-25504-50513-21713-31862

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, matrix: context, detail)

R-18978-08031-62088-38924-17278-52934-19628-35993

The memory pointed to by the character pointers returned for the declaration type and collation sequence is valid until the next call to any SQLite API function. (source: c3ref/table_column_metadata.html, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-18981-16292-44177-39464-49712-02547-36593-34843

When the defer_foreign_keys PRAGMA is on, enforcement of all foreign key constraints is delayed until the outermost transaction is committed. (source: pragma.html, checked-by: tcl/fkey6.test, th3/cov1/fkey24.test, matrix: context, detail)

R-18981-44563-59556-01794-47708-02337-53296-37760

The OFF journaling mode disables the rollback journal completely. (source: pragma.html, checked-by: th3/req1/pragma25.test, matrix: context, detail)

R-19003-27813-57127-49100-22413-58501-27554-18699

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, matrix: context, detail)

R-19021-59629-04270-46349-53725-18119-32890-29092

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, matrix: context, detail)

R-19069-01001-21275-64198-08959-57544-11845-18751

These routines are used to register a new virtual table module name. (source: c3ref/create_module.html, matrix: context, detail)

R-19114-56113-41752-64271-30879-46460-35912-30160

Different constraints within the same table may have different default conflict resolution algorithms. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-19120-50787-31629-64944-20395-18225-62762-09460

The sqlite3_preupdate_old(D,N,P) interface writes into P a pointer to a protected sqlite3_value that contains the value of the Nth column of the table row before it is updated. (source: c3ref/preupdate_count.html, matrix: context, detail)

R-19139-12267-31476-22597-30278-48901-50934-33461

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, matrix: context, detail)

R-19162-55388-28844-29887-54254-48882-22034-22486

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, matrix: context, detail)

R-19178-27645-63083-26050-05481-47319-52943-38968

Otherwise, no affinity is applied and both operands are compared as is. (source: datatype3.html, checked-by: th3/cov1/affinity01.test, th3/req1/datatype3_05.test, matrix: context, detail)

R-19186-55658-49729-13397-54658-17694-41016-19836

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, matrix: context, detail)

R-19191-63561-27756-43312-31709-28608-52878-51689

In addition to the tables, indexes, views, and triggers created by the application and/or the developer using CREATE statements SQL, the sqlite_master table may contain zero or more entries for internal schema objects that are created by SQLite for its own internal use. (source: fileformat2.html, matrix: context, detail)

R-19194-50107-23350-24777-39179-56094-65469-19806

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, matrix: context, detail)

R-19218-01018-34190-29408-05030-57766-08679-20332

If the column-name list after table-name is omitted then the number of values inserted into each row must be the same as the number of columns in the table. (source: lang_insert.html, checked-by: tcl/e_insert.test, matrix: context, detail)

R-19244-03478-32061-23000-56536-05403-47491-06826

The leaves have a level of 0. (source: rtree.html, matrix: context, detail)

R-19245-12964-15266-21259-12378-18812-33916-24209

The DELETE journaling mode is the normal behavior. (source: pragma.html, checked-by: th3/req1/pragma23.test, matrix: context, detail)

R-19249-32353-33767-36599-40313-00705-24761-59859

SQLITE_LIMIT_WORKER_THREADS The maximum number of auxiliary worker threads that a single prepared statement may start. (source: c3ref/c_limit_attached.html, checked-by: tcl/sort4.test, matrix: context, detail)

R-19326-44825-19062-24470-23880-46223-50935-31383

The "PRAGMA data_version" value is a local property of each database connection and so values returned by two concurrent invocations of "PRAGMA data_version" on separate database connections are often different even though the underlying database is identical. (source: pragma.html, checked-by: tcl/pragma3.test, th3/cov1/pragma26.test, matrix: context, detail)

R-19334-12811-52965-43642-11320-54818-13590-65507

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, matrix: context, detail)

R-19353-19546-22807-46023-33784-34102-06986-46730

A 2-dimensional R*Tree has 5 columns. (source: rtree.html, matrix: context, detail)

R-19353-43643-11289-35798-30332-46906-60350-15505

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, matrix: context, detail)

R-19393-22085-63206-61334-35392-55321-46849-03619

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, matrix: context, detail)

R-19404-45868-36670-49387-53766-10214-08555-10559

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, matrix: context, detail)

R-19406-19221-39828-63725-16599-34636-45225-33176

The destructor will also be invoked if the call to sqlite3_create_module_v2() fails. (source: c3ref/create_module.html, matrix: context, detail)

R-19445-36510-42868-48881-64287-13454-25209-36891

time(timestring, modifier, modifier, ...) (source: lang_datefunc.html, checked-by: th3/req1/date01.test, matrix: context, detail)

R-19454-21689-24466-55871-29604-18048-60005-14723

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, matrix: context, detail)

R-19480-30968-40912-48323-17771-07927-20882-34034

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, matrix: context, detail)

R-19486-35828-58507-08873-52072-46615-25523-07720

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, matrix: context, detail)

R-19509-40356-60366-52142-26522-07330-31595-37095

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, matrix: context, detail)

R-19515-61262-57142-56165-47391-12804-63366-22975

If there is no match, a NULL pointer is returned. (source: c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test, matrix: context, detail)

R-19553-64528-24132-56992-22388-20387-05422-50188

Total() never throws an integer overflow. (source: lang_aggfunc.html, checked-by: th3/req1/aggfunc01.test, matrix: context, detail)

R-19570-53558-20410-64757-41149-53677-54257-63723

It is an error to specify a compress function without also specifying an uncompress function. (source: fts3.html, matrix: context, detail)

R-19619-42762-44736-08897-02902-26192-57996-46412

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, matrix: context, detail)

R-19619-54598-52217-51985-41765-58210-14890-62978

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, checked-by: th3/req1/busy01.test, matrix: context, detail)

R-19628-13587-38733-35705-07447-40697-34819-47467

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, matrix: context, detail)

R-19648-30943-40070-65065-35301-05411-03146-42916

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, matrix: context, detail)

R-19660-56479-36342-33235-14845-36400-09046-33188

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, matrix: context, detail)

R-19672-38383-43870-63614-05691-24053-06228-32918

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, matrix: context, detail)

R-19673-40972-58319-61162-14300-46572-05681-35590

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, matrix: context, detail)

R-19696-22724-31246-18328-34316-54250-32558-13544

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, matrix: context, detail)

R-19713-52738-52485-51770-14412-64430-18771-01641


(source: syntax/select-stmt.html, matrix: context, detail)

R-19757-35036-22658-29796-35090-49616-44864-00036

The current value of the parameter is returned into *pCurrent. (source: c3ref/status.html, matrix: context, detail)

R-19785-02834-31233-04888-56980-35561-24739-27802

This pragma is a wrapper around the sqlite3_wal_autocheckpoint() C interface. (source: pragma.html, matrix: context, detail)

R-19803-45884-64369-17915-53923-43638-05068-02663

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, matrix: context, detail)

R-19808-29370-64330-18475-42910-48751-21092-02221

The xDestroy() method is used to delete a cache allocated by xCreate(). (source: c3ref/pcache_methods2.html, checked-by: th3/th3pcache.c, matrix: context, detail)

R-19812-36779-26037-25587-55568-01966-51571-26935

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, matrix: context, detail)

R-19827-62289-58446-52993-02249-28252-12913-58361

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, matrix: context, detail)

R-19836-11244-52903-63249-46309-23850-25183-00208

Example: X'53514C697465' (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-19846-48503-04889-44735-07429-55750-55258-63586

The value returned by sqlite3_msize(X) might be larger than the number of bytes requested when X was allocated. (source: c3ref/free.html, checked-by: th3/req1/malloc02.test, matrix: context, detail)

R-19854-42126-27972-10302-08269-22410-63996-33681

There are three arguments to SQLITE_CONFIG_HEAP: An 8-byte aligned pointer to the memory, the number of bytes in the memory buffer, and the minimum allocation size. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, th3/th3main.c, matrix: context, detail)

R-19878-23484-53576-16359-03133-43197-12770-47752

Let M be ((U-12)*32/255)-23 and let K be M+((P-M)%(U-4)). If P is greater than X then the number of bytes stored on the table b-tree leaf page is K if K is less or equal to X or M otherwise. (source: fileformat2.html, matrix: context, detail)

R-19884-42355-59719-29955-34222-13016-47876-51670

The sqlite3_preupdate_new(D,N,P) interface writes into P a pointer to a protected sqlite3_value that contains the value of the Nth column of the table row after it is updated. (source: c3ref/preupdate_count.html, matrix: context, detail)

R-19885-09448-58561-44146-11128-00310-35686-58085

The names of internal schema objects always begin with "sqlite_" and any table, index, view, or trigger whose name begins with "sqlite_" is an internal schema object. (source: fileformat2.html, matrix: context, detail)

R-19920-11576-34548-21403-56992-25102-09000-41133

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, checked-by: src/btree.c, matrix: context, detail)

R-19971-54976-54556-37696-16686-39038-59563-20085

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, matrix: context, detail)

R-19982-00724-51550-61529-52295-40817-37605-44623

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, matrix: context, detail)

R-20051-05832-30877-26776-57299-30715-57449-61816

On windows, the first component of an absolute path is a drive specification (e.g. "C:"). (source: c3ref/open.html, matrix: context, detail)

R-20124-57769-12967-06011-36499-08186-14693-61176

If a schema-name is specified, then the view is created in the specified database. (source: lang_createview.html, checked-by: th3/req1/view01.test, matrix: context, detail)

R-20149-25884-15163-16334-64710-02284-04877-02507

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, matrix: context, detail)

R-20205-17349-17235-26223-03175-26249-31726-44344

If the WHERE clause is not present, all records in the table are deleted. (source: lang_delete.html, checked-by: tcl/e_delete.test, matrix: context, detail)

R-20210-23164-18665-04349-57984-05045-09964-53374

Unregister a VFS with the sqlite3_vfs_unregister() interface. (source: c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test, matrix: context, detail)

R-20244-07722-17778-50950-32360-26781-61977-13264

The list of integers in the stat column can optionally be followed by arguments, each of which is a sequence of non-space characters. (source: fileformat2.html, matrix: context, detail)

R-20262-06249-08007-38401-43127-56610-34465-06889

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, matrix: context, detail)

R-20339-64003-24275-14776-38996-63966-02497-20063

Format 4 causes SQLite to respect the DESC keyword on index declarations. (source: fileformat2.html, checked-by: th3/req1/fileformat01.test, matrix: context, detail)

R-20409-33051-08329-62436-45384-49643-45094-34288

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, matrix: context, detail)

R-20413-39093-25878-54576-60732-55561-33363-27302

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, matrix: context, detail)

R-20446-37715-39007-53706-23139-04675-09949-14226

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, matrix: context, detail)

R-20467-43422-30485-36826-60194-40272-32740-00331

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, matrix: context, detail)

R-20474-44465-10719-25363-46434-31101-34097-17120

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, matrix: context, detail)

R-20486-33667-53440-39666-65031-09323-37959-22013

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, matrix: context, detail)

R-20520-54086-20387-28345-20691-46445-65238-30953

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_covering_index_scan.html, checked-by: src/main.c, matrix: context, detail)

R-20533-60939-10698-49029-55085-32598-43205-37289

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, matrix: context, detail)

R-20560-39162-53987-29912-13699-13892-53398-21192

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, matrix: context, detail)

R-20574-06110-58017-01957-45334-14595-63260-32420

The default setting is usually synchronous=FULL. (source: pragma.html, matrix: context, detail)

R-20590-08726-45565-50300-40304-23510-62801-34037

It is an error to specify a value for the mode parameter that is less restrictive than that specified by the flags passed in the third parameter to sqlite3_open_v2(). (source: c3ref/open.html, checked-by: tcl/e_uri.test, matrix: context, detail)

R-20609-23860-31620-63775-42539-11534-17004-18607

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, matrix: context, detail)

R-20637-43463-07167-46903-44256-61988-15144-63319

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, matrix: context, detail)

R-20643-25656-58463-39709-46255-05856-32679-34239

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/req1/datacnt01.test, th3/th3util.c, matrix: context, detail)

R-20665-17792-14135-29123-51100-08894-37624-05824

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, matrix: context, detail)

R-20690-50594-54745-63542-12245-05150-52761-00851

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, checked-by: src/btree.c, matrix: context, detail)

R-20784-11852-57325-61888-34040-48421-29147-36386

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, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-20790-14025-05441-59886-17616-40247-63857-04714

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, matrix: context, detail)

R-20796-14963-19630-14669-08622-46367-39917-03067

This function causes all database schemas to be read from disk and parsed, if that has not already been done, and returns an error if any errors are encountered while loading the schema. (source: c3ref/table_column_metadata.html, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-20854-17109-31337-20710-58230-10583-22919-16758

A CAST conversion is similar to the conversion that takes place when a column affinity is applied to a value except that with the CAST operator the conversion always takes place even if the conversion lossy and irreversible, whereas column affinity only changes the data type of a value if the change is lossless and reversible. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-20857-32692-20795-02101-46664-36777-53557-28223

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, matrix: context, detail)

R-20915-35810-14572-42507-50726-14071-51730-17527

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, matrix: context, detail)

R-20944-50040-32536-32451-12201-33674-47359-21324

The default file format is set by the SQLITE_DEFAULT_FILE_FORMAT compile-time option. (source: pragma.html, checked-by: th3/req1/pragma22.test, matrix: context, detail)

R-20958-54138-45241-50664-65336-36333-30654-63832

An attempt to write to an expired BLOB handle fails with an error code of SQLITE_ABORT. (source: c3ref/blob_write.html, checked-by: tcl/e_blobwrite.test, matrix: context, detail)

R-20974-45876-55609-02198-26922-65375-59673-02037

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/th3mutex.c, matrix: context, detail)

R-20983-25183-16317-48719-00472-39133-57551-19276

If sqlite3_config() is called after sqlite3_initialize() and before sqlite3_shutdown() then it will return SQLITE_MISUSE. (source: c3ref/config.html, matrix: context, detail)

R-21003-54221-59589-12513-12600-39825-11085-16301

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, checked-by: th3/cov1/withoutrowid01.test, matrix: context, detail)

R-21024-07855-27912-21826-13192-43444-47677-34434

The primary key columns appear in the order they they were declared in the PRIMARY KEY clause and the remaining columns appear in the order they occur in the CREATE TABLE statement. (source: fileformat2.html, matrix: context, detail)

R-21062-30088-46553-38702-08225-06060-08730-53281

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, matrix: context, detail)

R-21115-58321-25716-23770-11415-21637-17771-56749

If a column-name list is specified, then the number of values in each term of the VALUE list must match the number of specified columns. (source: lang_insert.html, checked-by: tcl/e_insert.test, matrix: context, detail)

R-21148-64834-51953-28586-58289-58298-04009-03354

The "INSERT INTO table DEFAULT VALUES" form of the INSERT statement is not supported. (source: lang_createtrigger.html, matrix: context, detail)

R-21171-34919-23602-58467-34631-37001-49601-29313

The eParentWithin and rParentScore values are copies of the eWithin and rScore values from the containing subtree of the current row. (source: rtree.html, matrix: context, detail)

R-21179-11011-35531-44364-04825-01555-54528-36481

sqlite> CREATE INDEX i2 ON t1(a, b); sqlite> EXPLAIN QUERY PLAN SELECT a, b FROM t1 WHERE a=1; 0|0|0|SEARCH TABLE t1 USING COVERING INDEX i2 (a=?) (source: eqp.html, checked-by: tcl/eqp.test, matrix: context, detail)

R-21182-58169-20146-54960-02459-65291-16580-58190

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, matrix: context, detail)

R-21225-56069-35831-25797-64710-47922-34566-13291

The SQLITE_CONFIG_SCRATCH option specifies a static memory buffer that SQLite can use for scratch memory. (source: c3ref/c_config_covering_index_scan.html, checked-by: th3/cov1/malloc07.test, matrix: context, detail)

R-21228-24308-16193-26156-01988-42098-33808-34150

The sqlite3_cancel_auto_extension(X) interface unregisters the initialization routine X that was registered using a prior call to sqlite3_auto_extension(X). (source: c3ref/cancel_auto_extension.html, matrix: context, detail)

R-21228-58399-13607-54712-08787-36573-11741-23051

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, matrix: context, detail)

R-21230-37464-43575-41237-19163-46428-41996-08800

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, matrix: context, detail)

R-21248-34301-14178-52249-38888-44158-13510-13358

Virtual terms are used for analysis only and do not cause any VDBE code to be generated. (source: optoverview.html, matrix: context, detail)

R-21274-02227-62864-03639-07150-27166-13487-20730

The sqlite3_interrupt(D) call is in effect until all currently running SQL statements on database connection D complete. (source: c3ref/interrupt.html, matrix: context, detail)

R-21320-14810-43799-05408-58279-13675-12785-56952

The wal_checkpoint pragma returns a single row with three integer columns. (source: pragma.html, checked-by: th3/req1/pragma29.test, matrix: context, detail)

R-21339-62938-10206-60125-33641-63547-58173-02852

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, matrix: context, detail)

R-21426-10262-16472-16411-19241-49098-31695-43338

The path component of the URI specifies the disk file that is the SQLite database to be opened. (source: uri.html, matrix: context, detail)

R-21490-41092-09920-20398-33812-50363-51367-35594

The first form (with the "VALUES" keyword) creates one or more new rows in an existing table. (source: lang_insert.html, checked-by: tcl/e_insert.test, matrix: context, detail)

R-21508-14355-30725-13403-38836-44113-60272-57161

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, matrix: context, detail)

R-21527-28967-38710-01216-03543-44346-41120-54609

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, matrix: context, detail)

R-21555-60916-58264-59419-46832-30971-06241-53598

No storage class conversions occur before the sort. (source: datatype3.html, checked-by: th3/req1/datatype3_04.test, matrix: context, detail)

R-21599-16038-23557-29825-04044-13537-53990-06867

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, matrix: context, detail)

R-21637-36677-40497-35509-61399-46252-57328-58576

If a term in X is of the form "z IS NOT NULL" and if a term in W is a comparison operator on "z" other than "IS", then those terms match. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-21674-26855-05967-15589-29302-41964-38112-11067

The rowid of the SQL table is the 64-bit signed integer key for each entry in the table b-tree. (source: fileformat2.html, matrix: context, detail)

R-21752-26913-20480-58251-45591-43193-62846-17726

The defer_foreign_keys pragma is automatically switched off at each COMMIT or ROLLBACK. Hence, the defer_foreign_keys pragma must be separately enabled for each transaction. (source: pragma.html, checked-by: tcl/fkey6.test, th3/cov1/fkey24.test, matrix: context, detail)

R-21769-42523-56036-07125-49513-08938-03164-12762

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, matrix: context, detail)

R-21806-43221-13311-12534-07273-62377-06740-15345

The sqlite3_initialize() routine returns SQLITE_OK on success. (source: c3ref/initialize.html, matrix: context, detail)

R-21827-30701-03148-53639-55860-16366-16292-16032

The vfs query parameter causes the database connection to be opened using the VFS called NAME. (source: uri.html, matrix: context, detail)

R-21829-14563-51248-28780-63073-47174-17671-25024

When casting a BLOB value to INTEGER, the value is first converted to TEXT. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-21869-50933-18898-03814-15794-26050-32013-17586

The sqlite_stat1.tbl column is the name of the table to which the index belongs. (source: fileformat2.html, matrix: context, detail)

R-21873-57098-57834-11008-20676-08257-29659-57534

For backwards compatibility, the "0x" hexadecimal integer notation is only understood by the SQL language parser, not by the type conversions routines. (source: lang_expr.html, checked-by: th3/req1/expr01.test, matrix: context, detail)

R-21926-12440-51056-61142-44683-61094-56845-29582

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, matrix: context, detail)

R-21999-45122-31048-13446-02528-26470-06317-22169

The sqlite3_update_hook() interface registers a callback function with the database connection identified by the first argument to be invoked whenever a row is updated, inserted or deleted in a rowid table. (source: c3ref/update_hook.html, checked-by: tcl/hook.test, th3/cov1/main15.test, matrix: context, detail)

R-22035-46182-36006-24131-28314-61788-09848-09790

The SQLITE_CONFIG_GETPCACHE2 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_covering_index_scan.html, checked-by: src/main.c, th3/th3pcache.c, matrix: context, detail)

R-22036-37196-51098-25883-36361-04038-28343-30035

The sqlite3_result_error_nomem() interface causes SQLite to throw an error indicating that a memory allocation failed. (source: c3ref/result_blob.html, checked-by: th3/req1/result01.test, matrix: context, detail)

R-22070-59472-34995-42069-63414-37359-02285-11048

If a term consists of multiple subterms containing a common column name and separated by OR, like this: column = expr1 OR column = expr2 OR column = expr3 OR ... Then that term is rewritten as follows: column IN (expr1,expr2,expr3,...) (source: optoverview.html, matrix: context, detail)

R-22130-30551-62458-54742-21400-01108-16464-06661

On success, the sqlite3_snapshot_get(D,S,P) interface writes a pointer to the newly created sqlite3_snapshot object into *P and returns SQLITE_OK. (source: c3ref/snapshot_get.html, matrix: context, detail)

R-22212-63356-49544-38225-38690-44409-41066-08853

Transactions can be deferred, immediate, or exclusive. (source: lang_transaction.html, matrix: context, detail)

R-22232-40047-05023-56174-19457-36430-27942-49450

The particular operator is stored in aConstraint[].op using one of the SQLITE_INDEX_CONSTRAINT_ values. (source: c3ref/index_info.html, matrix: context, detail)

R-22235-47006-02687-15500-56774-48140-19704-63768

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, matrix: context, detail)

R-22283-14179-18327-11516-19708-03741-18136-56509

Tables are removed using the DROP TABLE statement. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-22304-13691-20726-05433-26877-46116-43863-25024

In practice, metadata is preserved between function calls for function parameters that are compile-time constants, including literal values and parameters and expressions composed from the same. (source: c3ref/get_auxdata.html, matrix: context, detail)

R-22309-26004-04913-07405-19734-55428-18120-53442

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, checked-by: th3/cov1/main16.test, matrix: context, detail)

R-22338-33270-38633-54292-24133-20932-49452-38355

If N is less than one then the progress handler is disabled. (source: c3ref/progress_handler.html, checked-by: th3/req1/progress01.test, matrix: context, detail)

R-22347-12719-38657-19900-45791-11174-27141-23723

When a configuration option is set, sqlite3_config() returns SQLITE_OK. (source: c3ref/config.html, matrix: context, detail)

R-22391-07186-37161-38876-45465-63159-33403-63078

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, matrix: context, detail)

R-22484-49535-05658-48568-12441-17149-15045-25439

Leading spaces are removed. (source: fileformat2.html, matrix: context, detail)

R-22517-03298-06877-11770-25908-54043-03696-50918

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, matrix: context, detail)

R-22517-09812-56179-10540-44970-47912-40768-05667

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, matrix: context, detail)

R-22528-31592-23814-33593-53187-04400-51621-15631

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, matrix: context, detail)

R-22564-11647-52151-33857-28940-09855-65445-38014

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, checked-by: src/vdbe.c, th3/req1/fileformat02.test, matrix: context, detail)

R-22567-44039-44321-46904-30045-11816-43845-22039

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, matrix: context, detail)

R-22628-64423-61675-18888-38519-55715-49755-10742

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, matrix: context, detail)

R-22655-13879-23181-45430-34065-63005-59196-64005

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, matrix: context, detail)

R-22662-28218-11402-23235-34288-43676-21619-60718

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, matrix: context, detail)

R-22671-22821-00746-11610-44216-38779-63984-03906

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, matrix: context, detail)

R-22671-54036-59271-48827-17148-12128-60554-20551

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, matrix: context, detail)

R-22710-53328-59796-08773-22880-08291-09347-39531

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, checked-by: src/btree.c, matrix: context, detail)

R-22724-45533-32532-12289-36170-43581-26380-53780

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, matrix: context, detail)

R-22751-28901-48150-55263-36520-47093-21742-33919

The name of the column being indexed, or NULL if the index-column is the rowid of the table being indexed. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15x.test, matrix: context, detail)

R-22776-52830-07659-57324-38629-30744-28731-31224

For each pair of named columns, the expression "lhs.X = rhs.X" is evaluated for each row of the cartesian product as a boolean expression. Only rows for which all such expressions evaluates to true are included from the result set. (source: lang_select.html, checked-by: tcl/e_select.test, matrix: context, detail)

R-22782-22472-63620-46521-58776-65513-25083-63478

Names are zero-terminated UTF-8 strings. (source: c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test, matrix: context, detail)

R-22795-48828-40923-07115-03137-30466-52786-33478

If X is a BLOB then the indices refer to bytes. (source: lang_corefunc.html, checked-by: th3/cov1/func02.test, matrix: context, detail)

R-22799-40241-49763-48856-12252-38243-16002-08188

The sqlite3_status() and sqlite3_status64() routines return SQLITE_OK on success and a non-zero error code on failure. (source: c3ref/status.html, matrix: context, detail)

R-22825-10487-14088-37965-39008-13808-51021-60336

The "int" variable pointed to by the T parameter will be set to the "select-id" for the X-th loop. (source: c3ref/c_scanstat_est.html, matrix: context, detail)

R-22861-02843-39646-61037-38089-35502-27977-11188

Zero all sqlite3_stmt_scanstatus() related event counters. (source: c3ref/stmt_scanstatus_reset.html, checked-by: th3/cov1/status02.test, matrix: context, detail)

R-22868-25880-64801-36236-02118-32586-25357-26503

The LIKE operator can be made case sensitive using the case_sensitive_like pragma. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-22872-18005-62981-26187-32897-04943-19086-58374

But the "PRAGMA cache_spill=N" form of this statement only applies to the "main" schema or whatever other schema is specified as part of the statement. (source: pragma.html, matrix: context, detail)

R-22887-63324-57928-49032-58189-23826-57467-19364

The unlikely(X) function is a no-op that the code generator optimizes away so that it consumes no CPU cycles at run-time (that is, during calls to sqlite3_step()). (source: lang_corefunc.html, checked-by: tcl/func3.test, matrix: context, detail)

R-22934-25134-31918-65183-03263-52759-06599-24509

Comments are treated as whitespace by the parser. (source: lang_comment.html, checked-by: src/tokenize.c, matrix: context, detail)

R-22956-37754-14278-17642-05627-50863-58555-30245

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, matrix: context, detail)

R-22958-57964-21518-29993-48758-46150-56113-34417

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, matrix: context, detail)

R-22973-56658-43836-32419-61759-38607-43348-03721

SQLite will make this determination, but only if it has been compiled with SQLITE_ENABLE_STAT3 or SQLITE_ENABLE_STAT4. (source: optoverview.html, matrix: context, detail)

R-23019-08375-23742-45203-57540-44774-03255-16704

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, matrix: context, detail)

R-23025-34321-53440-17551-64635-00032-03474-62946

The maximum page count cannot be reduced below the current database size. (source: pragma.html, checked-by: th3/req1/pragma12.test, matrix: context, detail)

R-23027-03515-05606-08970-61667-55431-59935-24913

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, matrix: context, detail)

R-23027-35758-08796-19756-16363-24577-05722-25269

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, matrix: context, detail)

R-23038-23996-21339-41009-49120-44197-27486-19934

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, matrix: context, detail)

R-23075-39245-36315-44421-23373-63820-24651-07544

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, matrix: context, detail)

R-23110-47146-52080-06643-60978-41760-17507-36913

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, matrix: context, detail)

R-23114-21695-36244-34709-35067-61095-03657-31992

The auxiliary index-columns are not shown by the index_info pragma, but they are listed by the index_xinfo pragma. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15x.test, matrix: context, detail)

R-23120-24122-52717-58793-54182-36500-02638-57419

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, matrix: context, detail)

R-23149-10450-31226-11876-31056-64303-42616-45384

The second parameter is either the name of the database (i.e. "main", "temp", or an attached database) containing the specified table or NULL. (source: c3ref/table_column_metadata.html, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-23153-04437-57288-59301-62447-22408-58278-59491

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, matrix: context, detail)

R-23155-55597-19897-49290-61770-15838-04803-37418

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, matrix: context, detail)

R-23182-54295-50785-24596-08451-02370-06326-41675

The cache parameter may be set to either "shared" or "private". (source: c3ref/open.html, checked-by: tcl/e_uri.test, matrix: context, detail)

R-23293-62447-32888-51584-58025-47542-61505-16122

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, matrix: context, detail)

R-23299-15149-12260-14236-54625-56854-20927-10236

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, matrix: context, detail)

R-23302-30956-02464-62581-38265-62787-52147-51200

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, matrix: context, detail)

R-23313-12651-48093-62761-39865-28601-55555-42424

Call the second integer on a freelist trunk page L. If L is greater than zero then integers with array indexes between 2 and L+1 inclusive contain page numbers for freelist leaf pages. (source: fileformat2.html, matrix: context, detail)

R-23317-43079-57684-22333-28404-22394-54055-23674

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, matrix: context, detail)

R-23331-02158-03352-54918-44519-63240-29041-31988

The string "UTF-16" is interpreted as "UTF-16 encoding using native machine byte-ordering". (source: pragma.html, checked-by: th3/req1/pragma16.test, matrix: context, detail)

R-23332-64992-62836-09715-29451-35524-14907-15195

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, matrix: context, detail)

R-23336-07085-33379-01813-11813-48961-61224-20101

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, matrix: context, detail)

R-23360-48280-32877-53646-44675-29604-63391-63755

Rows for which the expression is false or NULL are retained. (source: lang_delete.html, checked-by: tcl/e_delete.test, matrix: context, detail)

R-23367-02194-56093-39792-23013-33795-52961-02773


(source: syntax/insert-stmt.html, matrix: context, detail)

R-23378-42536-56340-49562-54695-41894-41223-62715

The second is a copy of the database handle. (source: c3ref/wal_hook.html, checked-by: tcl/e_walhook.test, matrix: context, detail)

R-23385-34636-24682-17782-28236-64093-44026-01327

Applications can update, delete from, insert into or drop the sqlite_stat1 table, but may not create or alter the sqlite_stat1 table. (source: fileformat2.html, matrix: context, detail)

R-23445-46109-37360-43495-15091-19372-04158-40881

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, checked-by: src/pragma.c, matrix: context, detail)

R-23458-03780-07133-16857-18321-45188-49595-32402

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, matrix: context, detail)

R-23479-00031-14881-27531-19387-40447-21321-20674

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, checked-by: th3/req1/fileformat05.test, matrix: context, detail)

R-23486-28813-15662-33687-07998-38651-35612-02946

The SQLITE_ prefix is omitted from any strings returned by sqlite3_compileoption_get(). (source: c3ref/compileoption_get.html, matrix: context, detail)

R-23498-38103-14789-32362-20893-18131-57271-11278

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, matrix: context, detail)

R-23552-22587-27822-03022-61455-36680-30849-34520

If the MATCH operator is connected to other terms of the WHERE clause via an OR operator, for example, the query will fail with an error. (source: rtree.html, checked-by: th3/cov1/rtree04.test, matrix: context, detail)

R-23566-61685-32570-49548-46504-50893-18012-49598

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, matrix: context, detail)

R-23569-48727-57101-02184-22731-43304-31733-55704

UNIQUE and PRIMARY KEY constraints on tables cause SQLite to create internal indexes with names of the form "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 in the table definition. (source: fileformat2.html, matrix: context, detail)

R-23579-05241-28343-33967-00321-51471-16387-08197

PRAGMA busy_timeout; PRAGMA busy_timeout = milliseconds; Query or change the setting of the busy timeout. (source: pragma.html, checked-by: tcl/lock.test, th3/cov1/main21.test, matrix: context, detail)

R-23588-34450-24473-59625-33708-24256-58306-00821

The two-byte integer at offset 1 gives the start of the first freeblock on the page, or is zero if there are no freeblocks. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-23595-60076-32539-07407-36536-15376-05711-31213

The sqlite3_malloc64(N) routine works just like sqlite3_malloc(N) except that N is an unsigned 64-bit integer instead of a signed 32-bit integer. (source: c3ref/free.html, checked-by: th3/req1/malloc02.test, matrix: context, detail)

R-23612-42210-08607-14273-01110-55544-62379-11788

You can access the ROWID of an SQLite table using one of the special column names ROWID, _ROWID_, or OID. Except if you declare an ordinary table column to use one of those special names, then the use of that name will refer to the declared column not to the internal ROWID. (source: autoinc.html, checked-by: th3/req1/autoinc01.test, matrix: context, detail)

R-23640-47263-12341-60168-43783-53275-58204-18225

The rollback journal file can be truncated to zero length (source: fileformat2.html, matrix: context, detail)

R-23648-58527-04335-61943-03061-32754-63941-35147

SQLite only understands upper/lower case for ASCII characters by default. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-23658-63678-27642-11273-33121-18173-42579-42965

The sqlite_master.name column will hold the name of the object. (source: fileformat2.html, matrix: context, detail)

R-23682-59820-57074-21944-19735-61329-41044-60872

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, matrix: context, detail)

R-23702-41282-42393-06958-42086-21645-30380-61682

The path is optional if the authority is present. (source: uri.html, matrix: context, detail)

R-23735-03107-03121-47557-18096-07566-30916-33769

The likely(X) function returns the argument X unchanged. (source: lang_corefunc.html, checked-by: tcl/func3.test, matrix: context, detail)

R-23774-64117-15302-61921-22939-28381-40174-39816

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, matrix: context, detail)

R-23782-22078-58175-11068-16823-45650-46319-45186

Because of this, SQLite is able to plan queries with 50- or 60-way joins in a matter of microseconds. (source: optoverview.html, matrix: context, detail)

R-23786-28684-07406-43966-34623-43310-02646-59578

The "PRAGMA cache_spill=boolean" form of this pragma applies across all databases attached to the database connection. (source: pragma.html, matrix: context, detail)

R-23828-03043-49392-48287-20383-19771-48629-15869

After at least "ms" milliseconds of sleeping, the handler returns 0 which causes sqlite3_step() to return SQLITE_BUSY. (source: c3ref/busy_timeout.html, checked-by: th3/cov1/main21.test, matrix: context, detail)

R-23882-45353-30604-47614-45882-29623-34325-59956

The cell pointer array of a b-tree page immediately follows the b-tree page header. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-23914-51476-03843-05689-25158-40099-03729-02958

A literal value can also be the token "NULL". (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-23918-17301-20351-08154-14070-22495-33406-46123

The foreign_key_check pragma checks the database, or the table called "table-name", for foreign key constraints that are violated and returns one row of output for each violation. (source: pragma.html, checked-by: tcl/fkey5.test, th3/cov1/fkey23.test, matrix: context, detail)

R-23927-54081-32743-59723-35169-61192-28393-34691

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, matrix: context, detail)

R-23929-31743-58027-02127-28995-37198-56222-58306

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, matrix: context, detail)

R-23935-31469-05351-59076-27167-07827-26621-20596

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, matrix: context, detail)

R-23955-02765-61832-08091-33535-52671-43903-30817

Cache_spill is enabled by default (source: pragma.html, checked-by: tcl/pragma2.test, matrix: context, detail)

R-23976-43329-40116-37521-45580-17979-29083-00221

It is an error to specify both a schema-name and the TEMP or TEMPORARY keyword, unless the schema-name is "temp". (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-23979-26855-11433-13886-36819-17221-39687-26769

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, matrix: context, detail)

R-23980-43280-61587-10591-51567-45451-02507-40247

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, matrix: context, detail)

R-23980-48859-56951-38852-38346-56715-55568-02993

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, matrix: context, detail)

R-23984-49501-37243-56289-03587-60124-22633-25227

PRAGMA ignore_check_constraints = boolean; This pragma enables or disables the enforcement of CHECK constraints. (source: pragma.html, checked-by: th3/req1/pragma20.test, matrix: context, detail)

R-23992-54131-34297-51092-28105-58242-15143-29320

If the "TEMP" or "TEMPORARY" keyword occurs in between "CREATE" and "VIEW" then the view that is created is only visible to the database connection that created it and is automatically deleted when the database connection is closed. (source: lang_createview.html, checked-by: th3/req1/view01.test, matrix: context, detail)

R-24016-17929-42002-59431-23117-37264-43384-47268

C-style comments can span multiple lines. (source: lang_comment.html, checked-by: th3/req1/comment01.test, matrix: context, detail)

R-24023-61156-56094-16008-29634-01440-59018-40109

The mode query parameter determines if the new database is opened read-only, read-write, read-write and created if it does not exist, or that the database is a pure in-memory database that never interacts with disk, respectively. (source: uri.html, matrix: context, detail)

R-24078-09375-10188-46060-61284-00703-09304-21721

Value is a NULL. (source: fileformat2.html, checked-by: src/vdbeaux.c, th3/req1/fileformat02.test, matrix: context, detail)

R-24086-08530-21252-40131-41317-48771-53823-31992

For example, a partial index might omit entries for which the column being indexed is NULL. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-24089-57979-14928-03351-49983-36558-42407-47450

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, checked-by: src/btree.c, matrix: context, detail)

R-24124-56960-26974-01833-44587-40840-08627-58695

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, matrix: context, detail)

R-24153-28352-05918-29721-55341-26989-15412-17405

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, matrix: context, detail)

R-24157-46062-13277-37526-03999-51751-53681-32386

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, matrix: context, detail)

R-24176-11856-49416-35044-22347-11072-23258-18948

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, matrix: context, detail)

R-24179-60523-60164-40067-19292-39680-45687-45747

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, matrix: context, detail)

R-24188-24349-51458-56364-12806-43304-14352-46380

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, matrix: context, detail)

R-24227-04807-65013-09510-28047-53461-17252-27305

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, matrix: context, detail)

R-24306-14960-36438-04276-35826-43147-57622-43704

RESTART This mode works the same way as FULL with the addition that after checkpointing the log file it blocks (calls the busy-handler callback) until all readers are finished with the log file. (source: pragma.html, checked-by: th3/req1/checkpoint01.test, matrix: context, detail)

R-24334-46836-37699-41209-48952-15160-39885-36508

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, matrix: context, detail)

R-24401-52400-49114-60456-18821-28705-54480-01087

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, matrix: context, detail)

R-24408-11841-16708-30331-61955-39086-27640-21297

An application can tell which course of action SQLite took by using the sqlite3_get_autocommit() C-language interface. (source: lang_transaction.html, matrix: context, detail)

R-24411-60193-43052-59187-49935-26782-54329-59494

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, matrix: context, detail)

R-24420-43338-21659-30217-32361-58749-59788-18529

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, matrix: context, detail)

R-24433-42760-21501-54800-20604-32904-26746-52498

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, matrix: context, detail)

R-24450-46174-44304-25763-63471-62798-12121-54973

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, matrix: context, detail)

R-24454-61742-57320-38040-08939-30630-11445-30109

The BINARY collating sequence is used for comparisons. (source: lang_corefunc.html, checked-by: th3/req1/func03.test, matrix: context, detail)

R-24470-31136-04101-59681-51092-46521-28491-41459

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, matrix: context, detail)

R-24499-57071-23351-26477-16690-35822-52475-36418

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, matrix: context, detail)

R-24505-23230-57666-22051-56312-29400-20176-42804

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, matrix: context, detail)

R-24519-28304-27679-62184-02249-08056-49023-13978

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, matrix: context, detail)

R-24543-02373-21907-00972-51733-48834-36106-39581

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, matrix: context, detail)

R-24577-38891-65340-59973-62459-58446-28963-28131

sqlite> EXPLAIN QUERY PLAN SELECT c, d FROM t2 ORDER BY c; 0|0|0|SCAN TABLE t2 0|0|0|USE TEMP B-TREE FOR ORDER BY (source: eqp.html, checked-by: tcl/eqp.test, matrix: context, detail)

R-24596-57909-32096-12351-64612-37660-33667-09663

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, matrix: context, detail)

R-24625-56801-43002-50418-06223-19456-53547-53426

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_covering_index_scan.html, checked-by: th3/th3oom.c, matrix: context, detail)

R-24641-64445-22439-28040-38903-58400-61759-51123

Note that number of bytes stored on the leaf page is never less than M. (source: fileformat2.html, matrix: context, detail)

R-24663-27339-41709-46831-61109-18753-41935-55210

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, matrix: context, detail)

R-24676-09859-25258-06679-18327-03281-24955-00264

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, matrix: context, detail)

R-24691-27369-29687-09464-65253-51469-13435-14358

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, matrix: context, detail)

R-24707-22256-10968-61514-58469-45624-50106-41306

The estimatedRows value is an estimate of the number of rows that will be returned by the strategy. (source: c3ref/index_info.html, matrix: context, detail)

R-24728-13230-17441-17828-27985-11598-34826-53003

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, matrix: context, detail)

R-24731-45773-21654-50701-01955-60961-16210-17736

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, matrix: context, detail)

R-24738-46982-10847-07410-11065-35020-61549-58241

Otherwise, it is invoked with two arguments only. (source: lang_corefunc.html, checked-by: th3/req1/func02.test, matrix: context, detail)

R-24770-17719-20723-28193-15704-54316-24358-11027

As with all SQL syntax, the case of the keywords does not matter. One can write "WITHOUT rowid" or "without rowid" or "WiThOuT rOwId" and it will mean the same thing. (source: withoutrowid.html, checked-by: tcl/without_rowid5.test, th3/cov1/withoutrowid01.test, matrix: context, detail)

R-24784-09209-65529-37322-41810-39114-37590-65280

The authority may be omitted, may be blank, or may be "localhost". Any other authority results in an error. (source: uri.html, matrix: context, detail)

R-24831-43693-55364-04496-15994-32297-02839-53654

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, matrix: context, detail)

R-24843-55391-00331-31917-58094-58865-54184-39062

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, matrix: context, detail)

R-24844-01074-31075-35616-03763-50098-34519-03364

datetime(timestring, modifier, modifier, ...) (source: lang_datefunc.html, checked-by: th3/req1/date01.test, matrix: context, detail)

R-24854-24731-07056-48016-36151-48843-43846-53234

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, matrix: context, detail)

R-24874-01721-30373-30915-48096-44417-56853-33182

If sqlite3_collation_needed16() is used, the names are passed as UTF-16 in machine native byte order. (source: c3ref/collation_needed.html, matrix: context, detail)

R-24896-34661-16790-51948-60772-09392-38798-62711

The sqlite_stat4.tbl column holds name of the table that owns the index that the row describes (source: fileformat2.html, matrix: context, detail)

R-24911-36108-02843-41555-24793-65003-42358-61703

The GLOB operator is always case sensitive. (source: optoverview.html, checked-by: th3/cov1/pragma02.test, matrix: context, detail)

R-24949-48633-12038-32784-60403-63994-11753-48428

Thus with a deferred transaction, the BEGIN statement itself does nothing to the filesystem. (source: lang_transaction.html, matrix: context, detail)

R-24958-23411-18929-15714-30148-06066-52554-42233

Each sub-select is assigned a distinct, non-zero "selectid" value. (source: eqp.html, checked-by: th3/req1/eqp01.test, matrix: context, detail)

R-24984-42113-54448-54138-16961-63127-18743-03855

Any callback set by a previous call to sqlite3_rollback_hook() for the same database connection is overridden. (source: c3ref/commit_hook.html, matrix: context, detail)

R-24999-30014-65347-53781-01089-16331-37334-22917


(source: syntax/join-operator.html, matrix: context, detail)

R-25008-21688-65381-07984-00031-51738-33385-29636

The size of a page is a power of two between 512 and 65536 inclusive. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-25048-46581-04940-52749-02967-51891-39439-41238

SQLite will never invoke xInit() more than once without an intervening call to xShutdown(). (source: c3ref/pcache_methods2.html, checked-by: th3/th3pcache.c, matrix: context, detail)

R-25071-21202-61916-09187-06401-02826-31838-35119

The "CROSS JOIN" join operator produces the same result as the "INNER JOIN", "JOIN" and "," operators (source: lang_select.html, checked-by: tcl/e_select.test, tcl/e_select2.test, matrix: context, detail)

R-25108-07802-40508-32376-19441-31217-21410-63803

However, if there are pending write operations, the COMMIT command will fail with an error code SQLITE_BUSY. (source: lang_transaction.html, matrix: context, detail)

R-25136-65062-60246-57323-36202-59774-22241-57010

This option is used to enable or disable the enforcement of foreign key constraints. (source: c3ref/c_dbconfig_enable_fkey.html, checked-by: th3/cov1/main34.test, matrix: context, detail)

R-25149-22012-48563-28153-37839-65089-07651-08185

The INSERT ... DEFAULT VALUES statement inserts a single new row into the named table. (source: lang_insert.html, checked-by: tcl/e_insert.test, matrix: context, detail)

R-25216-03908-32391-06837-09807-59608-58830-19572

The term "b=6" does not match "b=3+3" or "b-6=0" or "b BETWEEN 6 AND 6". (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-25219-25618-61597-36745-37744-00617-56783-53239

The second column is the rowid of the row that contains the invalid REFERENCES clause. (source: pragma.html, checked-by: tcl/fkey5.test, th3/cov1/fkey23.test, matrix: context, detail)

R-25343-19498-17466-42652-61214-37840-16481-55260

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, matrix: context, detail)

R-25359-61571-30835-46993-61423-15847-19094-36045

If the implicit DELETE FROM causes any deferred foreign key constraints to be violated, and the violations still exist when the transaction is committed, an error is returned at the time of commit. (source: lang_droptable.html, checked-by: th3/cov1/fkey24.test, matrix: context, detail)

R-25361-16150-63678-45550-40472-51042-22441-52100

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, matrix: context, detail)

R-25384-39337-58415-17102-37697-27977-14467-00416

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, matrix: context, detail)

R-25394-06637-63632-64734-15986-15167-14146-59945

These routine might also return NULL if a memory allocation error occurs. (source: c3ref/column_database_name.html, matrix: context, detail)

R-25431-51432-49583-45321-20136-64162-50998-25796

If P>X and KIf P>X and K>X then the first M bytes of P are stored on the btree page and the remaining P-M bytes are stored on overflow pages. (source: requirements.html, matrix: context, detail)

R-25451-61125-57795-23914-51441-34414-44666-54346

The SQLITE_CONFIG_URI option takes a single argument of type int. If non-zero, then URI handling is globally enabled. If the parameter is zero, then URI handling is globally disabled. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, matrix: context, detail)

R-25459-18529-03655-35597-46929-35137-47473-63058

These routines return 0 if the statement is incomplete. (source: c3ref/complete.html, checked-by: th3/cov1/complete01.test, matrix: context, detail)

R-25460-65232-16560-61859-43199-38232-53443-46120

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, checked-by: th3/req1/checkpoint01.test, th3/req1/keyword01.test, matrix: context, detail)

R-25473-20557-44472-04975-51987-58936-13072-57785

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, matrix: context, detail)

R-25492-41572-18546-22299-27344-57797-39532-60300

If the SELECT yields no rows, then the value of the expression is NULL. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-25508-47517-53800-52553-37426-36808-15124-36675

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, matrix: context, detail)

R-25540-36848-64613-55100-38595-19137-49959-42593

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, matrix: context, detail)

R-25541-17189-03104-63416-46282-42879-07481-01224

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, matrix: context, detail)

R-25558-37487-19096-36063-17437-04044-36041-27526

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, th3/cov1/build13.test, matrix: context, detail)

R-25583-11663-64337-14085-59741-00588-27469-12431

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, matrix: context, detail)

R-25587-45258-04258-19279-64153-15260-17086-46262

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, checked-by: th3/cov1/main16.test, matrix: context, detail)

R-25588-27181-18097-02154-44633-08776-21987-21638

The EXISTS operator always evaluates to one of the integer values 0 and 1. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-25613-37547-39472-02780-29297-59051-40019-17427

Indexes are removed with the DROP INDEX command. (source: lang_createindex.html, checked-by: th3/req1/createidx01.test, matrix: context, detail)

R-25616-08788-18594-15704-08007-00569-12211-26573

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, checked-by: th3/req1/select01.test, matrix: context, detail)

R-25616-61116-19772-20982-08386-58484-18398-18419

The database connection can be changed between full and incremental autovacuum mode at any time. (source: pragma.html, checked-by: th3/req1/pragma07.test, matrix: context, detail)

R-25654-38196-54382-29664-57733-52949-37784-40820

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, matrix: context, detail)

R-25655-38934-60706-44432-04289-55073-30584-52654


(source: syntax/delete-stmt-limited.html, matrix: context, detail)

R-25698-53233-37700-31268-29379-58660-07035-56459

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, matrix: context, detail)

R-25715-37072-58552-52856-29858-64366-26989-17165

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_covering_index_scan.html, checked-by: src/sqliteInt.h, matrix: context, detail)

R-25722-54578-39151-48243-45997-39827-22901-27237

sqlite3_realloc(X,N) returns a pointer to a memory allocation of at least N bytes in size or NULL if insufficient memory is available. (source: c3ref/free.html, checked-by: th3/req1/malloc02.test, matrix: context, detail)

R-25726-27770-20459-03461-13607-13171-18925-23787

SQLite will invoke the destructor function (if it is not NULL) when SQLite no longer needs the pClientData pointer. (source: c3ref/create_module.html, matrix: context, detail)

R-25787-28949-24920-53948-06133-34727-56080-32939

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, matrix: context, detail)

R-25815-04054-00806-27320-41776-02444-29917-59413

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, matrix: context, detail)

R-25824-45489-43990-02774-35332-28137-18182-24527

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, matrix: context, detail)

R-25832-43294-06509-06689-56001-36083-00062-63837

The presence of the "noskipscan" token on the sqlite_stat1.stat field of an index prevents that index from being used with the skip-scan optimization. (source: fileformat2.html, checked-by: th3/cov1/where43.test, matrix: context, detail)

R-25857-01867-51039-59358-11204-13788-02264-02528

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, matrix: context, detail)

R-25883-55063-43215-03328-35797-53686-57723-04298

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, matrix: context, detail)

R-25894-51060-18040-53125-15120-62396-36354-30863

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: tcl/e_blobclose.test, th3/cov1/vdbeblob01.test, matrix: context, detail)

R-25940-54422-48655-57585-43486-07020-37736-04270

Once created, the sqlite_sequence table exists in the sqlite_master table forever; it cannot be dropped. (source: fileformat2.html, matrix: context, detail)

R-25950-00887-26391-00141-61376-60148-41906-53274

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, matrix: context, detail)

R-25963-03527-53793-34841-03007-31919-23816-21204

The xInit() method is passed a copy of the sqlite3_pcache_methods2.pArg value. (source: c3ref/pcache_methods2.html, checked-by: th3/th3pcache.c, matrix: context, detail)

R-26000-56589-64657-09406-12178-15033-38154-19492

The xShutdown() method may be NULL. (source: c3ref/pcache_methods2.html, checked-by: src/pcache.c, matrix: context, detail)

R-26026-19483-46131-60322-16678-61732-18178-30249

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, matrix: context, detail)

R-26030-41411-57646-19570-38371-36124-26436-49384

The highwater mark associated with SQLITE_DBSTATUS_CACHE_USED is always 0. (source: c3ref/c_dbstatus_options.html, checked-by: th3/req1/dbstatus01.test, matrix: context, detail)

R-26031-07851-20661-23903-48754-42738-42414-42677

URIs are processed as UTF8 text. (source: uri.html, matrix: context, detail)

R-26078-30979-29806-34785-43846-23819-01793-57552

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, matrix: context, detail)

R-26102-39000-00300-53165-31110-34521-05669-39517

The mxLevel entry in the sqlite3_rtree_query_info structure is the level value for the root of the R*Tree. (source: rtree.html, matrix: context, detail)

R-26117-01852-15491-47779-25813-50210-15791-48499

In this latter case, the integer at offset 64 is true for incremental_vacuum and false for auto_vacuum. (source: fileformat2.html, matrix: context, detail)

R-26128-01625-01942-61645-49803-53494-49149-48512

Calls to sqlite3_close() and sqlite3_close_v2() return SQLITE_OK if the sqlite3 object is successfully destroyed and all associated resources are deallocated. (source: c3ref/close.html, checked-by: th3/th3util.c, matrix: context, detail)

R-26145-35631-18411-10408-27137-14285-36971-04977

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, matrix: context, detail)

R-26176-60647-43928-09816-19858-42177-19549-07263

An exclusive transaction causes EXCLUSIVE locks to be acquired on all databases. (source: lang_transaction.html, matrix: context, detail)

R-26177-52471-27779-44415-45290-32639-49511-38944

The first argument is an integer code for the specific parameter to measure. (source: c3ref/status.html, matrix: context, detail)

R-26188-08449-06969-05333-36262-60871-22176-39475

If the SQLITE_FCNTL_PRAGMA file control returns SQLITE_OK, then the parser assumes that the VFS has handled the PRAGMA itself and the parser generates a no-op prepared statement if result string is NULL, or that returns a copy of the result string if the string is non-NULL. (source: c3ref/c_fcntl_busyhandler.html, checked-by: tcl/multiplex4.test, th3/cov1/pragma24.test, matrix: context, detail)

R-26226-51609-37600-59924-62338-40225-61693-64519

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, matrix: context, detail)

R-26228-33773-01538-19072-29962-47655-12853-04397

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, matrix: context, detail)

R-26234-58592-26686-64458-63937-04823-26518-58770

Whether or not any conversions are attempted before the comparison takes place depends on the type affinity of the operands. (source: datatype3.html, checked-by: th3/req1/datatype3_05.test, matrix: context, detail)

R-26240-27972-41753-52481-56276-48994-27806-58856

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, matrix: context, detail)

R-26245-27007-61091-63162-56268-13882-14164-49256

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, matrix: context, detail)

R-26266-37313-29476-24640-23484-47513-24426-61925

If the implicit DELETE FROM executed as part of a DROP TABLE command violates any immediate foreign key constraints, an error is returned and the table is not dropped. (source: lang_droptable.html, checked-by: th3/cov1/fkey24.test, th3/req1/droptable01.test, matrix: context, detail)

R-26267-43414-63813-04870-32404-43287-64705-64465

In the case of an update, this is the rowid after the update takes place. (source: c3ref/update_hook.html, checked-by: th3/cov1/main15.test, matrix: context, detail)

R-26300-50198-46822-10316-25756-64179-25231-23016

If a WHERE clause is supplied, then only those rows for which the WHERE clause boolean expression is true are deleted. (source: lang_delete.html, checked-by: tcl/e_delete.test, matrix: context, detail)

R-26304-43698-14397-16826-05465-17486-47171-40397

The sqlite3_errstr() interface returns the English-language text that describes the result code, as UTF-8. (source: c3ref/errcode.html, matrix: context, detail)

R-26335-36429-33832-38639-19447-31976-61151-28783

The second and third column are -1 if there is no write-ahead log, for example if this pragma is invoked on a database connection that is not in WAL mode. (source: pragma.html, checked-by: th3/req1/pragma29.test, matrix: context, detail)

R-26343-45930-10507-06945-56497-65367-59680-35735

This pragma invokes the sqlite3_soft_heap_limit64() interface with the argument N, if N is specified and is a non-negative integer. (source: pragma.html, checked-by: src/pragma.c, tcl/softheap1.test, matrix: context, detail)

R-26346-36443-14203-01237-59463-02061-43306-07214

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, matrix: context, detail)

R-26377-49195-21869-49397-37126-00993-02015-27234

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, matrix: context, detail)

R-26383-00685-00003-12709-20041-02640-63629-60960

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, matrix: context, detail)

R-26388-52100-18147-39797-05438-03656-60623-16408

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, matrix: context, detail)

R-26406-03647-33657-03652-13422-62298-62842-50282

It is possible for the library compile-time C preprocessor symbol SQLITE_TEMP_STORE to override this pragma setting. (source: pragma.html, matrix: context, detail)

R-26427-33659-32322-40327-33016-33915-32615-17849

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, matrix: context, detail)

R-26456-17544-11737-29192-02704-19416-55152-07326

The right-hand operand of an IN or NOT IN operator has no affinity if the operand is a list and has the same affinity as the affinity of the result set expression if the operand is a SELECT. (source: datatype3.html, checked-by: th3/cov1/affinity01.test, th3/req1/datatype3_05.test, matrix: context, detail)

R-26480-31567-01189-11331-40338-43119-64271-54165

The key for each entry in the WITHOUT ROWID b-tree is a record composed of the columns of the PRIMARY KEY followed by all remaining columns of the table. (source: fileformat2.html, matrix: context, detail)

R-26490-64257-21643-35537-33187-49961-28588-55610

But making modifications to this table will likely perturb the AUTOINCREMENT key generation algorithm. (source: autoinc.html, checked-by: th3/req1/autoinc01.test, matrix: context, detail)

R-26492-45204-29363-38379-65381-14832-32787-08398

If P>X and K<=X then the first K bytes of P are stored on the btree page and the remaining P-K bytes are stored on overflow pages. (source: fileformat2.html, matrix: context, detail)

R-26501-17306-17113-63025-42217-43181-46541-32131

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, matrix: context, detail)

R-26507-47431-65188-24932-00073-09728-32384-65254

If the N parameter to sqlite3_realloc(X,N) is zero or negative then the behavior is exactly the same as calling sqlite3_free(X). (source: c3ref/free.html, checked-by: src/malloc.c, th3/req1/malloc02.test, matrix: context, detail)

R-26578-03501-48329-54809-40303-33325-20677-03881

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, matrix: context, detail)

R-26601-01119-55361-00031-26734-63731-65122-53650

Subject to rules (11), (12) and (13), they may also contain ORDER BY, LIMIT and OFFSET clauses. (source: optoverview.html, matrix: context, detail)

R-26602-05678-16907-15766-43643-13869-48465-09322

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, matrix: context, detail)

R-26661-41922-59096-19000-31799-48031-02223-27178

Regardless of the compile-time configuration, any identifier that is not on the following 124 element list is not a keyword to the SQL parser in SQLite: ABORT ACTION ADD AFTER ALL ALTER ANALYZE AND AS ASC ATTACH AUTOINCREMENT BEFORE BEGIN BETWEEN BY CASCADE CASE CAST CHECK COLLATE COLUMN COMMIT CONFLICT CONSTRAINT CREATE CROSS CURRENT_DATE CURRENT_TIME CURRENT_TIMESTAMP DATABASE DEFAULT DEFERRABLE DEFERRED DELETE DESC DETACH DISTINCT DROP EACH ELSE END ESCAPE EXCEPT EXCLUSIVE EXISTS EXPLAIN FAIL FOR FOREIGN FROM FULL GLOB GROUP HAVING IF IGNORE IMMEDIATE IN INDEX INDEXED INITIALLY INNER INSERT INSTEAD INTERSECT INTO IS ISNULL JOIN KEY LEFT LIKE LIMIT MATCH NATURAL NO NOT NOTNULL NULL OF OFFSET ON OR ORDER OUTER PLAN PRAGMA PRIMARY QUERY RAISE RECURSIVE REFERENCES REGEXP REINDEX RELEASE RENAME REPLACE RESTRICT RIGHT ROLLBACK ROW SAVEPOINT SELECT SET TABLE TEMP TEMPORARY THEN TO TRANSACTION TRIGGER UNION UNIQUE UPDATE USING VACUUM VALUES VIEW VIRTUAL WHEN WHERE WITH WITHOUT (source: lang_keywords.html, checked-by: th3/req1/keyword01.test, matrix: context, detail)

R-26684-40576-09126-53282-12439-40003-41887-60526

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, matrix: context, detail)

R-26704-30334-42154-41889-16850-21412-27655-04243

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, matrix: context, detail)

R-26708-58601-30431-52488-58911-20234-49790-51615

If certain kinds of errors occur within a transaction, the transaction may or may not be rolled back automatically. The errors that can cause an automatic rollback 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 (source: lang_transaction.html, matrix: context, detail)

R-26747-61719-04994-53150-40234-49148-55708-63137

When the application provides any amount of scratch memory using SQLITE_CONFIG_SCRATCH, SQLite avoids unnecessary large heap allocations. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/vdbesort.c, matrix: context, detail)

R-26801-64137-39079-48164-16524-44855-40563-04540

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, matrix: context, detail)

R-26810-60950-31083-35442-30714-31340-57644-05934

If the authority section is present, then the path is always an absolute pathname. (source: uri.html, matrix: context, detail)

R-26835-10964-22323-42888-35777-38355-20607-28933

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, matrix: context, detail)

R-26835-34471-30842-38170-16771-41578-05053-31515

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, matrix: context, detail)

R-26845-32976-14599-31607-31221-37786-17413-24156

Value "rwc" is equivalent to setting both SQLITE_OPEN_READWRITE and SQLITE_OPEN_CREATE. (source: c3ref/open.html, checked-by: tcl/e_uri.test, matrix: context, detail)

R-26888-26313-07515-35775-03599-15989-59200-07369

The default setting is off, meaning that CHECK constraints are enforced by default. (source: pragma.html, checked-by: th3/req1/pragma20.test, matrix: context, detail)

R-26900-09176-20658-03305-09602-45574-02965-13099

A value of 13 (0x0d) means the page is a leaf table b-tree page. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-26917-59594-53851-11147-17067-15964-43582-37189

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, matrix: context, detail)

R-26947-19317-61341-19233-36872-20864-34826-22893

If the statement is a COMMIT or occurs outside of an explicit transaction, then you can retry the statement. (source: c3ref/step.html, matrix: context, detail)

R-26959-28969-15823-07414-35392-55670-52959-52462

As of version 3.6.18, without running ANALYZE, SQLite will choose option 2. (source: optoverview.html, matrix: context, detail)

R-26972-25540-17987-13345-11118-49972-58252-62199

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, matrix: context, detail)

R-26993-43540-10992-37102-45404-55683-60247-30594

Passing zero or a negative value as the nFrame parameter disables automatic checkpoints entirely. (source: c3ref/wal_autocheckpoint.html, checked-by: tcl/e_walauto.test, matrix: context, detail)

R-26999-04791-16827-31249-13986-61939-06074-63605

The sqlite_sequence table is an internal table used to help implement AUTOINCREMENT. (source: fileformat2.html, matrix: context, detail)

R-27002-52307-56024-23951-62365-30891-30149-50327

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, th3/cov1/build13.test, matrix: context, detail)

R-27108-11003-35381-33223-00139-25935-11742-39438

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, matrix: context, detail)

R-27190-32042-23820-53475-52169-33531-21572-25781


(source: syntax/foreign-key-clause.html, matrix: context, detail)

R-27192-61982-03758-21332-41239-32834-09507-36997

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, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-27219-49057-63143-35616-48690-21583-47587-41101

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, matrix: context, detail)

R-27228-35217-15852-02871-02611-58321-58852-42304

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, matrix: context, detail)

R-27234-05761-29027-01683-12712-48347-06174-19243

Parameter zDb is not the filename that contains the database, but rather the symbolic name of the database. For attached databases, this is the name that appears after the AS keyword in the ATTACH statement. For the main database file, the database name is "main". For TEMP tables, the database name is "temp". (source: c3ref/blob_open.html, checked-by: tcl/e_blobopen.test, matrix: context, detail)

R-27280-34366-63015-08711-30594-32620-64348-44111

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, matrix: context, detail)

R-27289-46867-00795-18230-38785-61782-07002-59582

If N is negative, then the limit reverts to the default value determined by the most recent sqlite3_config(SQLITE_CONFIG_MMAP_SIZE), or to the compile time default determined by SQLITE_DEFAULT_MMAP_SIZE if not start-time limit has been set. (source: pragma.html, matrix: context, detail)

R-27290-56511-04892-59250-62806-15127-45739-19284

CREATE INDEX po_parent ON purchaseorder(parent_po) WHERE parent_po IS NOT NULL; (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-27301-09658-03082-11591-62753-46064-11323-29821

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, matrix: context, detail)

R-27327-54431-40312-06060-63431-19500-57112-52669

The entry point is zProc. (source: c3ref/load_extension.html, matrix: context, detail)

R-27363-63308-55807-24434-61973-58824-33773-60814

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, matrix: context, detail)

R-27383-10246-01655-25271-51755-59417-27078-62241

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, matrix: context, detail)

R-27438-53558-39373-64011-10542-64778-48166-54900

Each column of the subquery has the collation sequence and affinity of the corresponding expression in the subquery statement. (source: lang_select.html, checked-by: tcl/e_select2.test, matrix: context, detail)

R-27458-04043-31882-50848-08148-11623-61104-53512

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, matrix: context, detail)

R-27461-16942-46149-61363-05307-36708-49016-10103

The TEMP database has a default suggested cache size of 0 pages. (source: pragma.html, checked-by: th3/req1/pragma09.test, matrix: context, detail)

R-27472-62612-19629-13155-08759-40565-10817-64469

But WITHOUT ROWID tables do follow the standard and will throw an error on any attempt to insert a NULL into a PRIMARY KEY column. (source: withoutrowid.html, checked-by: tcl/without_rowid5.test, th3/cov1/withoutrowid01.test, matrix: context, detail)

R-27484-01467-40660-08782-16756-57898-53117-01697

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, matrix: context, detail)

R-27484-38990-39416-37657-02655-32272-61477-41469

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, matrix: context, detail)

R-27503-48393-50904-62536-02444-59493-56551-12481


(source: syntax/type-name.html, matrix: context, detail)

R-27542-08072-33902-06053-42391-63696-60417-63522

The sqlite3_set_auxdata(C,N,P,X) interface saves P as metadata for the N-th argument of the application-defined function. (source: c3ref/get_auxdata.html, matrix: context, detail)

R-27542-21820-48287-27325-53525-05675-63695-54951

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, matrix: context, detail)

R-27549-59611-14621-06209-14436-33110-11201-06265

The instr(X,Y) function finds the first occurrence of string Y within string X and returns the number of prior characters plus 1, or 0 if Y is nowhere found within X. (source: lang_corefunc.html, checked-by: tcl/instr.test, matrix: context, detail)

R-27599-07502-21530-13120-63753-37571-15799-15475

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, checked-by: th3/cov1/main16.test, matrix: context, detail)

R-27649-21314-13870-57957-53735-15830-08405-07126

However a left outer join is neither commutative nor associative and hence will not be reordered. (source: optoverview.html, matrix: context, detail)

R-27702-51733-15398-16850-47606-12840-18480-45806

New VFSes are registered with sqlite3_vfs_register(). (source: c3ref/vfs_find.html, checked-by: th3/req1/vfs01.test, matrix: context, detail)

R-27726-60934-44670-59608-21152-24326-11375-20798

The "PRAGMA data_version" command provides an indication that the database file has been modified. (source: pragma.html, checked-by: tcl/pragma3.test, th3/cov1/pragma26.test, matrix: context, detail)

R-27741-36039-35312-26646-43562-16753-08652-02657

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, matrix: context, detail)

R-27753-05999-58187-16156-08992-28399-17856-50930

The 5th parameter to the authorizer callback is the name of the database ("main", "temp", etc.) if applicable. (source: c3ref/c_alter_table.html, checked-by: th3/cov1/auth03.test, matrix: context, detail)

R-27775-64721-40407-04494-31964-21217-54345-17508

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, matrix: context, detail)

R-27800-48033-09479-04735-22303-21367-59255-07249

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, matrix: context, detail)

R-27806-26076-28846-24074-00653-42186-57572-51475

The handler for an SQLITE_FCNTL_PRAGMA file control can optionally make the first element of the char** argument point to a string obtained from sqlite3_mprintf() or the equivalent and that string will become the result of the pragma or the error message if the pragma fails. (source: c3ref/c_fcntl_busyhandler.html, checked-by: src/test_multiplex.c, th3/cov1/pragma24.test, matrix: context, detail)

R-27809-56550-37281-65484-19482-39813-11020-02299

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, matrix: context, detail)

R-27819-43026-21380-16418-25214-30821-40612-27368

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, matrix: context, detail)

R-27831-00579-12114-42310-13784-00983-37340-32180

NOT NULL is enforced on every column of the PRIMARY KEY in a WITHOUT ROWID table. (source: withoutrowid.html, checked-by: tcl/without_rowid5.test, th3/cov1/withoutrowid01.test, matrix: context, detail)

R-27847-27229-42495-29063-58716-22268-05238-18530

The first argument is the database connection object to be interrogated. (source: c3ref/db_status.html, checked-by: th3/req1/dbstatus01.test, matrix: context, detail)

R-27849-26297-61734-41281-64688-05393-35782-25088

PRAGMA schema.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, matrix: context, detail)

R-27882-15425-11851-57208-29860-19997-13242-33591

This option is used to enable or disable the sqlite3_load_extension() interface independently of the load_extension() SQL function. (source: c3ref/c_dbconfig_enable_fkey.html, matrix: context, detail)

R-27896-13480-56358-14836-45881-39569-16238-21022

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, matrix: context, detail)

R-27910-63456-49633-56474-25927-30250-35983-46521

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, matrix: context, detail)

R-27925-06263-58551-32265-51230-19990-38380-59040

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, matrix: context, detail)

R-27935-58314-00156-50891-26988-61472-07043-33985

Any prior cache entry associated with newKey is guaranteed not to be pinned. (source: c3ref/pcache_methods2.html, matrix: context, detail)

R-27941-57764-10424-18721-07448-14003-34159-15666

The sqlite3_rollback_hook() interface registers a callback function to be invoked whenever a transaction is rolled back. (source: c3ref/commit_hook.html, matrix: context, detail)

R-27945-10199-33337-38453-50117-26077-19774-25797

Each ordinary SQL table in the database schema is represented on-disk by a table b-tree. (source: fileformat2.html, matrix: context, detail)

R-27966-31616-60182-10304-08590-16090-08574-57683

An attempt to create a WITHOUT ROWID table without a PRIMARY KEY results in an error. (source: withoutrowid.html, checked-by: tcl/without_rowid5.test, th3/cov1/withoutrowid01.test, matrix: context, detail)

R-27985-03553-20917-04804-06476-41235-27520-21131

These interfaces are used to retrieve runtime status information about the performance of SQLite, and optionally to reset various highwater marks. (source: c3ref/status.html, matrix: context, detail)

R-27994-60376-08852-47971-54191-53637-09431-08610

The same arbitrarily selected row is used for each non-aggregate expression. (source: lang_select.html, checked-by: tcl/e_select.test, matrix: context, detail)

R-28051-48608-28159-47201-29527-20252-33499-18741

If xGeom returns anything other than SQLITE_OK, then the r-tree query will abort with an error. (source: rtree.html, matrix: context, detail)

R-28051-59567-56645-15588-46628-55433-20920-32934

Other processes can continue to read from the database, however. (source: lang_transaction.html, matrix: context, detail)

R-28054-53927-06304-60532-01730-48719-20616-01346

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, matrix: context, detail)

R-28170-10886-01228-38547-37735-16350-02783-15797

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, matrix: context, detail)

R-28176-28813-25399-58317-42934-47980-64589-03329

The xGeom callback always does a depth-first search of the r-tree. (source: rtree.html, matrix: context, detail)

R-28183-48984-04569-19175-13455-19458-08289-27795

If the callback returns non-zero, then another attempt is made to access the database and the cycle repeats. (source: c3ref/busy_handler.html, checked-by: th3/req1/busy01.test, matrix: context, detail)

R-28207-40885-37612-34994-37916-57388-29422-16350

The last argument is a pointer into which the callback result should be written. (source: rtree.html, matrix: context, detail)

R-28220-46694-36270-42674-38857-47778-22952-56853

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, matrix: context, detail)

R-28228-32357-57123-54703-49475-19797-57317-46170

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, checked-by: th3/req1/fileformat02.test, matrix: context, detail)

R-28258-23166-61617-36220-57922-46020-57990-00363

Row iRow is not present in the table (source: c3ref/blob_open.html, checked-by: tcl/e_blobopen.test, matrix: context, detail)

R-28262-47447-02372-41671-47406-00862-29752-13937

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, matrix: context, detail)

R-28265-37702-63167-40719-28674-33175-26294-56765

The second argument is a pointer to the function to invoke when a row is updated, inserted or deleted in a rowid table. (source: c3ref/update_hook.html, checked-by: th3/cov1/main15.test, matrix: context, detail)

R-28279-44669-55028-49406-32452-64424-01870-54893

If nByte is positive, then it is the number of bytes read from zSql. (source: c3ref/prepare.html, checked-by: th3/req1/prepare01.test, matrix: context, detail)

R-28307-32767-23693-57600-42950-25827-15696-21088

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, matrix: context, detail)

R-28312-64704-30092-58113-01356-46939-35653-28661

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, checked-by: src/btree.c, matrix: context, detail)

R-28346-31823-44337-58654-12319-45607-22371-22984

A call to either function replaces the existing collation-needed callback. (source: c3ref/collation_needed.html, matrix: context, detail)

R-28351-07091-05361-50500-02238-36187-02311-00737

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, matrix: context, detail)

R-28355-09804-02024-51679-13656-23007-30178-16776

If there is more than one table or subquery in FROM clause then the contents of all tables and/or subqueries are joined into a single dataset for the simple SELECT statement to operate on. (source: lang_select.html, checked-by: tcl/e_select.test, matrix: context, detail)

R-28375-38319-63184-42611-00265-46056-03710-21134

SQLite will never request a scratch buffer that is more than 6 times the database page size. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/btree.c, matrix: context, detail)

R-28401-00140-19628-52826-12287-35959-24998-24420

Value is a string in the text encoding and (N-13)/2 bytes in length. (source: fileformat2.html, checked-by: src/vdbeaux.c, th3/req1/fileformat02.test, matrix: context, detail)

R-28453-47400-61335-60267-59373-07041-42359-06361

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, matrix: context, detail)

R-28465-35432-54989-58142-09664-10793-19950-25889

When the temp_store setting is changed, all existing temporary tables, indices, triggers, and views are immediately deleted. (source: pragma.html, matrix: context, detail)

R-28518-13457-48277-27328-18424-50932-01795-30236

The optional "OR action" conflict clause that follows the UPDATE keyword 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, matrix: context, detail)

R-28530-22001-17760-49127-38466-18799-32025-16275

Content is not actually committed on the disk until the outermost transaction commits. (source: lang_savepoint.html, matrix: context, detail)

R-28535-44631-32814-50468-55427-04715-11501-46204

The likelihood(X) function is a no-op that the code generator optimizes away so that it consumes no CPU cycles during run-time (that is, during calls to sqlite3_step()). (source: lang_corefunc.html, checked-by: tcl/func3.test, matrix: context, detail)

R-28594-02890-08451-24102-07094-48300-54751-43989

The one-byte flag at offset 0 indicating the b-tree page type. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-28659-11035-10621-07368-12698-03611-12155-24539

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, matrix: context, detail)

R-28676-08005-24857-51856-29072-62693-32404-21796

Table zTable does not exist within database zDb (source: c3ref/blob_open.html, checked-by: tcl/e_blobopen.test, matrix: context, detail)

R-28676-32830-52785-15539-23546-23390-27594-39349

The xMutexInit routine is called by SQLite exactly once for each effective call to sqlite3_initialize(). (source: c3ref/mutex_methods.html, matrix: context, detail)

R-28691-49464-13455-34259-09637-44341-17028-46530

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, matrix: context, detail)

R-28740-04940-19074-59456-16824-11848-19165-57032

The time() function returns the time as HH:MM:SS. (source: lang_datefunc.html, checked-by: th3/req1/date01.test, matrix: context, detail)

R-28760-53843-47957-08431-27887-29261-48374-11570

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, matrix: context, detail)

R-28765-22796-02386-57750-08034-62633-19124-45761

If the previous call to this routine had an N of 1 or more and a non-NULL P then the pseudo-randomness is generated internally and without recourse to the sqlite3_vfs xRandomness method. (source: c3ref/randomness.html, checked-by: th3/cov1/random01.test, matrix: context, detail)

R-28818-00847-36702-14411-16104-05353-45723-35449

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, matrix: context, detail)

R-28818-63526-62393-01881-62533-13491-06138-19891

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, matrix: context, detail)

R-28853-08147-20510-38197-22369-16459-32849-06937

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, matrix: context, detail)

R-28870-48866-03452-03570-43153-10694-10376-44715

In SQLite, table rows normally have a 64-bit signed integer ROWID which is unique among all rows in the same table. (source: autoinc.html, checked-by: th3/req1/autoinc01.test, matrix: context, detail)

R-28880-18896-60065-00895-16000-25645-24475-60986

The ALTER TABLE command does not work on statistics tables. (source: lang_analyze.html, checked-by: th3/req1/analyze01.test, matrix: context, detail)

R-28888-42274-08103-28138-34725-55152-28406-13778

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, matrix: context, detail)

R-28911-57501-45271-30589-18471-43910-24083-24523

The defer_foreign_keys pragma defaults to OFF so that foreign key constraints are only deferred if they are created as "DEFERRABLE INITIALLY DEFERRED". (source: pragma.html, checked-by: tcl/fkey6.test, th3/cov1/fkey24.test, matrix: context, detail)

R-28963-00207-05179-26933-06486-36885-16571-22389

If the database connection is associated with unfinalized prepared statements or unfinished sqlite3_backup objects then sqlite3_close() will leave the database connection open and return SQLITE_BUSY. (source: c3ref/close.html, checked-by: th3/cov1/main23.test, matrix: context, detail)

R-28989-00211-56037-13079-09434-49891-20969-08914

sqlite3_config() can be called as part of the implementation of an application-defined sqlite3_os_init(). (source: c3ref/config.html, matrix: context, detail)

R-28995-46979-25570-20018-47836-46368-43472-22663

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, matrix: context, detail)

R-29005-40549-62573-61718-07162-40054-58592-42696

FTS4 uses term prefix indexes to speed up prefix queries. (source: fts3.html, matrix: context, detail)

R-29045-37224-33225-01178-62278-53898-40877-61168

For example, the sqlite_stat1 table might indicate that an equality constraint on column x reduces the search space to 10 rows on average, whereas an equality constraint on column y reduces the search space to 3 rows on average. In that case, SQLite would prefer to use index ex2i2 since that index is more selective. (source: optoverview.html, matrix: context, detail)

R-29052-00975-25766-49663-50070-52826-19346-28533

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, matrix: context, detail)

R-29082-45770-21240-41661-14924-48900-49346-30675

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, matrix: context, detail)

R-29137-58191-04727-48044-60255-14464-15278-17646

SQLITE_STATUS_MALLOC_COUNT This parameter records the number of separate memory allocations currently checked out. (source: c3ref/c_status_malloc_count.html, matrix: context, detail)

R-29144-37270-15316-24457-48532-24353-08508-55125

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, matrix: context, detail)

R-29161-24939-37010-28632-36605-59202-44014-09658

This is the number of sort operations that have occurred. (source: c3ref/c_stmtstatus_counter.html, matrix: context, detail)

R-29161-32953-36932-45614-26636-25376-16033-00724

If one operand has TEXT affinity and the other has no affinity, then TEXT affinity is applied to the other operand. (source: datatype3.html, checked-by: th3/cov1/affinity01.test, th3/req1/datatype3_05.test, matrix: context, detail)

R-29177-48281-29998-61012-25413-14806-58383-44850

It then checkpoints all frames in the log file and syncs the database file. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, th3/req1/checkpoint01.test, matrix: context, detail)

R-29187-47463-37855-25397-01259-03141-56758-63159

For indexes on an ordinary rowid table, N will be one more than the number of columns indexed. (source: fileformat2.html, matrix: context, detail)

R-29190-16177-49676-56162-41955-57961-52271-56322


(source: syntax/common-table-expression.html, matrix: context, detail)

R-29198-50701-28906-62015-01619-10608-18054-51120

When the commit hook callback routine returns zero, the COMMIT operation is allowed to continue normally. (source: c3ref/commit_hook.html, matrix: context, detail)

R-29213-61195-54301-03299-01569-39638-01555-01215

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, checked-by: tcl/hook.test, th3/cov1/main15.test, matrix: context, detail)

R-29255-51137-31633-40808-05446-49202-54154-26438

For "X LIKE P" without the ESCAPE clause, set the E parameter of sqlite3_strlike(P,X,E) to 0. (source: c3ref/strlike.html, matrix: context, detail)

R-29276-00741-11068-20150-45137-35653-26807-40835

When the locking-mode is set to EXCLUSIVE, the database connection never releases file-locks. (source: pragma.html, checked-by: th3/req1/pragma04.test, matrix: context, detail)

R-29283-15561-34387-21673-60506-52883-35719-11898

Otherwise, the storage class of the result is determined by applying the rules for determining column affinity to the type-name. (source: lang_expr.html, matrix: context, detail)

R-29319-62175-31242-39109-13345-46061-10840-60903

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, matrix: context, detail)

R-29353-26294-62114-45133-33417-28665-47147-29185

PRAGMA fullfsync PRAGMA fullfsync = boolean; Query or change the fullfsync flag. (source: pragma.html, checked-by: th3/req1/pragma11b.test, matrix: context, detail)

R-29356-02391-20787-31753-20232-32348-21090-16703

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, checked-by: src/btree.c, matrix: context, detail)

R-29387-20242-08784-06903-03129-29684-27650-40318

Some virtual table implementations might impose additional restrictions. (source: lang_createvtab.html, matrix: context, detail)

R-29410-53018-13680-36864-38018-28179-51962-01812

If there are too few arguments in the argument list, missing arguments are assumed to have a NULL value, which is translated into 0 or 0.0 for numeric formats or an empty string for %s. (source: lang_corefunc.html, checked-by: tcl/printf2.test, th3/cov1/printf08.test, matrix: context, detail)

R-29431-39229-16691-57532-51214-42870-42294-30038

The highwater mark associated with SQLITE_DBSTATUS_CACHE_WRITE is always 0. (source: c3ref/c_dbstatus_options.html, checked-by: src/status.c, matrix: context, detail)

R-29448-60346-55143-08707-47583-53661-32513-61785

PRAGMA schema.index_info(index-name); This pragma returns one row for each key column in the named index. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15.test, matrix: context, detail)

R-29466-27412-45786-34057-43817-35684-25480-06167

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, matrix: context, detail)

R-29497-04603-39486-29131-04048-03697-44723-21949

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, matrix: context, detail)

R-29512-54644-05780-17564-45452-02840-21704-61078

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, matrix: context, detail)

R-29517-30691-07524-03121-42038-48163-15213-35798

Hence, when an application changes the statistics tables directly, SQLite will not immediately notice the changes. (source: lang_analyze.html, checked-by: th3/req1/analyze01.test, matrix: context, detail)

R-29523-01234-45433-34913-07391-02140-19209-23434

When a "table-name" is specified, the only foreign key constraints checked are those created by REFERENCES clauses in the CREATE TABLE statement for table-name. (source: pragma.html, checked-by: th3/cov1/fkey23.test, matrix: context, detail)

R-29538-34987-07238-64188-64158-06889-50248-62239

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, matrix: context, detail)

R-29555-61994-05019-56778-12354-29013-03139-17266

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, matrix: context, detail)

R-29588-44058-56045-00722-36389-33824-35706-30523

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, matrix: context, detail)

R-29600-32407-54811-33651-22955-26262-16018-30636

sqlite3_free() is used to free idxPtr if and only if needToFreeIdxPtr is true. (source: c3ref/index_info.html, matrix: context, detail)

R-29604-30395-11418-33165-02079-38209-02467-57208

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, matrix: context, detail)

R-29629-55858-55328-41166-17171-44417-01732-51851

Type is associated with individual values, not with the containers used to hold those values. (source: c3ref/column_decltype.html, matrix: context, detail)

R-29639-16887-16584-30400-13663-34877-64046-50311

The sqlite3_db_readonly(D,N) interface returns 1 if the database N of connection D is read-only, 0 if it is read/write, or -1 if N is not the name of a database on connection D. (source: c3ref/db_readonly.html, checked-by: tcl/rdonly.test, matrix: context, detail)

R-29639-49338-45805-35258-41039-23584-19093-35749

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, matrix: context, detail)

R-29649-49812-55856-43048-16547-37449-39759-10169

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, matrix: context, detail)

R-29653-64292-04142-32577-33842-31550-59902-00796

The second argument to the busy handler callback is the number of times that the busy handler has been invoked previously for the same locking event. (source: c3ref/busy_handler.html, checked-by: th3/req1/busy01.test, matrix: context, detail)

R-29691-21352-53312-54436-56868-51235-26976-62729

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, matrix: context, detail)

R-29701-50711-44772-52633-13865-01358-40998-48117

The unicode(X) function returns the numeric unicode code point corresponding to the first character of the string X. (source: lang_corefunc.html, checked-by: tcl/func.test, matrix: context, detail)

R-29702-55194-05446-48408-53607-29729-56782-07687

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, matrix: context, detail)

R-29704-26647-58862-58935-31533-13851-11315-20283

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, matrix: context, detail)

R-29730-42609-05554-56391-51377-12498-20824-07696

In this case the result of evaluating the left-most expression from each term of the VALUES list is inserted into the left-most column of each new row, and so forth for each subsequent expression. (source: lang_insert.html, checked-by: tcl/e_insert.test, matrix: context, detail)

R-29740-29379-09735-48719-34134-53325-08131-24362

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, matrix: context, detail)

R-29747-05924-20663-28243-45594-47687-47105-58596

FULL blocks concurrent writers while it is running, but readers can proceed. (source: pragma.html, matrix: context, detail)

R-29748-45567-07187-24756-39474-12329-09927-01777

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, matrix: context, detail)

R-29753-05667-59108-06137-58483-55469-25582-30166

The text of query parameters is appended to the filename argument of the xOpen method of the VFS. (source: uri.html, matrix: context, detail)

R-29765-45832-49120-26582-31576-30942-45829-65039

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, matrix: context, detail)

R-29779-04281-26216-55813-25026-31775-44460-23073

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, matrix: context, detail)

R-29781-51289-55954-01701-34718-07402-02199-48708

So, ordinary rowid tables in SQLite violate the SQL standard and allow NULL values in PRIMARY KEY fields. (source: withoutrowid.html, checked-by: tcl/without_rowid5.test, th3/cov1/withoutrowid01.test, matrix: context, detail)

R-29804-27366-08727-59986-31864-09983-14088-09844

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, checked-by: tcl/e_blobwrite.test, matrix: context, detail)

R-29813-27283-26120-20088-53689-36454-45951-57520

After a checkpoint, new write transactions overwrite the WAL file from the beginning. (source: fileformat2.html, matrix: context, detail)

R-29830-14325-45586-46074-54512-52450-29043-42603

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, matrix: context, detail)

R-29851-52272-33233-14067-54274-53843-25272-26823

Value is a big-endian 64-bit twos-complement integer. (source: fileformat2.html, checked-by: src/vdbeaux.c, th3/req1/fileformat02.test, matrix: context, detail)

R-29855-60809-01544-19871-54336-63942-18466-34966

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, matrix: context, detail)

R-29868-13536-10966-03336-45139-07308-57583-25685

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, matrix: context, detail)

R-29872-04040-27270-03833-42234-32060-43929-61511

If those locks cannot be obtained immediately and there is a busy-handler callback configured, it is invoked in the usual manner. (source: c3ref/db_cacheflush.html, matrix: context, detail)

R-29875-31678-61620-24152-15277-25938-13734-04890

The argument to the SQLITE_FCNTL_PRAGMA file control is an array of pointers to strings (char**) in which the second element of the array is the name of the pragma and the third element is the argument to the pragma or NULL if the pragma has no argument. (source: c3ref/c_fcntl_busyhandler.html, checked-by: src/pragma.c, src/test_multiplex.c, matrix: context, detail)

R-29897-28851-11131-17538-15635-12313-50588-15022

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, matrix: context, detail)

R-29901-08836-51888-40758-53445-49475-03703-08720

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/th3testvfs.c, matrix: context, detail)

R-29907-62378-42519-29973-48919-58819-22759-58497

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, matrix: context, detail)

R-29946-11104-19867-16845-18883-10746-06540-64125

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 BLOB 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, matrix: context, detail)

R-29987-53326-32227-44761-37373-28199-35279-34751

The leftmost column of the result set has the index 0. (source: c3ref/column_blob.html, checked-by: th3/req1/column01.test, matrix: context, detail)

R-29989-03153-00644-12353-52386-44408-44979-16456

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, matrix: context, detail)

R-30008-03647-27202-20831-29850-54434-32362-14140

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, matrix: context, detail)

R-30025-13801-01234-26643-63886-25441-43268-35607

The psow parameter indicates whether or not the powersafe overwrite property does or does not apply to the storage media on which the database file resides. (source: c3ref/open.html, checked-by: th3/cov1/psow01.test, matrix: context, detail)

R-30082-38996-55894-31210-19025-03289-36793-27218

The non-equals operator can be either != or <>. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-30083-58938-31645-59750-38554-41419-43937-22175

The index of the column is stored in aConstraint[].iColumn. (source: c3ref/index_info.html, matrix: context, detail)

R-30104-14201-52849-13140-57489-26582-19257-15267

Additional application-specific collating functions can be added to SQLite using the sqlite3_create_collation() interface. (source: fileformat2.html, checked-by: th3/th3util.c, matrix: context, detail)

R-30105-58549-25183-38919-44198-38701-12397-38507

PASSIVE Checkpoint as many frames as possible without waiting for any database readers or writers to finish. Sync the db file if all frames in the log are checkpointed. (source: pragma.html, checked-by: th3/req1/checkpoint01.test, matrix: context, detail)

R-30129-51241-12586-54609-11421-44691-24678-31141

The "double" variable pointed to by the T parameter will be set to the query planner's estimate for the average number of rows output from each iteration of the X-th loop. (source: c3ref/c_scanstat_est.html, checked-by: th3/cov1/status02.test, matrix: context, detail)

R-30135-06439-12622-19657-03902-02051-33050-20191

The wal_autocheckpoint pragma can be used to invoke this interface from SQL. (source: c3ref/wal_autocheckpoint.html, checked-by: tcl/e_walauto.test, matrix: context, detail)

R-30140-15527-13572-28268-32284-47435-56739-50325

The compress option is used to specify the compress function. (source: fts3.html, matrix: context, detail)

R-30164-60316-40156-60446-50221-53227-39726-53106

The number of pages in cache must exceed both the cache_spill threshold and the maximum cache size set by the PRAGMA cache_size statement in order for spilling to occur. (source: pragma.html, matrix: context, detail)

R-30185-15359-41231-64088-51727-20362-49126-10873

The default suggested cache size is -2000, which means the cache size is limited to 2048000 bytes of memory. (source: pragma.html, checked-by: src/sqliteLimit.h, th3/req1/pragma09.test, matrix: context, detail)

R-30189-54097-58322-43687-36717-28803-52946-09131

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, matrix: context, detail)

R-30195-08968-16924-33658-13499-65099-07965-35563

All automatic checkpoints are PASSIVE. (source: pragma.html, matrix: context, detail)

R-30224-53949-52765-04057-07963-58169-00243-05425

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, matrix: context, detail)

R-30235-58964-46895-22364-45908-13682-50023-55727

When one of RAISE(ROLLBACK,...), RAISE(ABORT,...) or RAISE(FAIL,...) is called during trigger-program execution, the specified ON CONFLICT processing is performed the current query terminates. (source: lang_createtrigger.html, matrix: context, detail)

R-30243-02494-34522-44043-46462-44113-55048-51587

The sqlite3_stricmp() and sqlite3_strnicmp() APIs allow 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/stricmp.html, checked-by: src/util.c, matrix: context, detail)

R-30248-02140-43435-09276-30517-50982-49513-41085

The first three columns contain an integer value. (source: eqp.html, checked-by: th3/req1/eqp01.test, matrix: context, detail)

R-30264-64343-18676-16200-46556-14505-34639-51509

All arguments are preceded by a single space. (source: fileformat2.html, matrix: context, detail)

R-30269-25284-41363-48378-16742-02348-00072-11353

The default value of the fullfsync flag is off. (source: pragma.html, checked-by: th3/req1/pragma11b.test, matrix: context, detail)

R-30311-39793-14973-30919-34186-11921-51287-47112

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, matrix: context, detail)

R-30323-21917-40561-21411-57538-63013-10240-64875

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, matrix: context, detail)

R-30326-06845-64615-54981-43603-53973-26447-14350

The destructor is called to dispose of the BLOB or string even if the call to bind API fails. (source: c3ref/bind_blob.html, checked-by: th3/req1/bind01.test, matrix: context, detail)

R-30347-18702-41681-51017-11561-03801-56644-21815

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, matrix: context, detail)

R-30358-48480-02487-45285-44102-55038-52936-37421

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, matrix: context, detail)

R-30374-63100-15715-29897-06518-00278-46226-59168

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, matrix: context, detail)

R-30391-20943-57014-62404-57876-35219-41861-22105

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, checked-by: th3/req1/busy01.test, matrix: context, detail)

R-30433-25443-23879-51033-37593-48703-34224-12115

An underscore ("_") in the LIKE pattern matches any single character in the string. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-30470-29835-03618-00817-05721-31518-05673-45416

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, matrix: context, detail)

R-30481-56627-22651-35996-10349-58660-54475-15242

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, matrix: context, detail)

R-30493-01537-45458-43801-08603-54598-05440-48528

If this routine has not been previously called or if the previous call had N less than one or a NULL pointer for P, then the PRNG is seeded using randomness obtained from the xRandomness method of the default sqlite3_vfs object. (source: c3ref/randomness.html, checked-by: th3/cov1/random01.test, matrix: context, detail)

R-30526-43432-10994-07089-02178-39041-60976-54446

The locking mode of temp and in-memory databases cannot be changed. (source: pragma.html, checked-by: th3/req1/pragma04.test, matrix: context, detail)

R-30582-29746-05981-37310-62755-30295-44870-62832

If the callback on a commit hook function returns non-zero, then the commit is converted into a rollback. (source: c3ref/commit_hook.html, matrix: context, detail)

R-30617-11336-33984-38056-06680-32424-07593-35065

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/th3pcache.c, matrix: context, detail)

R-30638-59954-59281-20323-32142-07020-22821-14638

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, matrix: context, detail)

R-30687-15230-29813-38800-06728-37939-57957-31201

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, matrix: context, detail)

R-30791-11785-26457-12987-43722-30660-26434-24770

The sqlite3_strlike(P,X,E) function matches Unicode characters, though only ASCII characters are case folded. (source: c3ref/strlike.html, matrix: context, detail)

R-30809-57812-61495-62022-11490-25278-56613-15778

The final callback parameter is the rowid of the row. (source: c3ref/update_hook.html, checked-by: tcl/hook.test, th3/cov1/main15.test, matrix: context, detail)

R-30814-53756-49698-58904-46011-12554-22448-40537

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, matrix: context, detail)

R-30842-64597-38059-54199-19748-27245-38788-44472

If a write-transaction is open on database connection D when the sqlite3_db_cacheflush(D) interface invoked, any dirty pages in the pager-cache that are not currently in use are written out to disk. (source: c3ref/db_cacheflush.html, matrix: context, detail)

R-30879-62015-53996-61326-18041-63884-46339-47880

And the declared type of "STRING" has an affinity of NUMERIC, not TEXT. (source: datatype3.html, checked-by: th3/req1/datatype3_02.test, matrix: context, detail)

R-30918-12436-57339-31834-32101-57409-49210-29864

The sqlite3_result_text64() interface sets the return value of an application-defined function to be a text string in an encoding specified by the fifth (and last) parameter, which must be one of SQLITE_UTF8, SQLITE_UTF16, SQLITE_UTF16BE, or SQLITE_UTF16LE. (source: c3ref/result_blob.html, checked-by: th3/req1/result02.test, matrix: context, detail)

R-30955-38324-06638-08685-16466-65436-15533-06365

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, matrix: context, detail)

R-30964-04756-41013-33290-38906-18403-44827-12997

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, matrix: context, detail)

R-30967-33251-18681-38633-21419-53092-54100-57767

Memory to hold the error message string is managed internally and must not be freed by the application (source: c3ref/errcode.html, matrix: context, detail)

R-30981-64168-44842-46448-61673-47635-40067-59553

For each UNIQUE constraint on the table, each row must contain a unique combination of values in the columns identified by the UNIQUE constraint. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-31029-02789-51389-40070-25151-19392-18984-32450

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, matrix: context, detail)

R-31035-48105-55236-17512-32062-12366-10110-52557

If no arguments are given, all attached databases are analyzed. (source: lang_analyze.html, checked-by: th3/req1/analyze01.test, matrix: context, detail)

R-31067-37494-56120-35098-11105-54623-54147-27483

Triggers are removed using the DROP TRIGGER statement. (source: lang_createtrigger.html, matrix: context, detail)

R-31070-13763-03261-14688-14121-11229-57314-08102

The sqlite3_busy_handler(D,X,P) routine sets a callback function X that might be invoked with argument P whenever an attempt is made to access a database table associated with database connection D when another thread or process has the table locked. (source: c3ref/busy_handler.html, checked-by: th3/req1/busy01.test, matrix: context, detail)

R-31074-37730-44024-06868-31899-04779-58492-60283

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, matrix: context, detail)

R-31086-35521-56938-30140-08121-54172-49179-57363

On success, SQLITE_OK is returned and the new BLOB handle is stored in *ppBlob. Otherwise an error code is returned and, unless the error code is SQLITE_MISUSE, *ppBlob is set to NULL. (source: c3ref/blob_open.html, checked-by: tcl/e_blobopen.test, matrix: context, detail)

R-31163-29022-10663-19494-01661-06524-11639-30452

The "E" character that begins the exponentiation clause of a floating point literal can be either upper or lower case. (source: lang_expr.html, checked-by: th3/req1/expr01.test, matrix: context, detail)

R-31204-44780-48490-01818-36589-33853-37932-09648

Database zDb does not exist (source: c3ref/blob_open.html, checked-by: tcl/e_blobopen.test, matrix: context, detail)

R-31231-36717-57726-13439-19567-41766-26823-60811

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, matrix: context, detail)

R-31235-42643-53508-27982-17967-09319-44968-07098

The fourth column in the output of the foreign_key_check pragma is the same integer as the first column in the output of the foreign_key_list pragma. (source: pragma.html, checked-by: th3/cov1/fkey23.test, matrix: context, detail)

R-31246-29731-62646-60277-08521-29245-49284-60874

The pContext member of the sqlite3_rtree_geometry structure is always set to a copy of the pContext argument passed to sqlite3_rtree_geometry_callback() when the callback is registered. (source: rtree.html, matrix: context, detail)

R-31248-24630-37475-28758-64215-56604-24000-32221

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 if the magic number is 0x377f0682. (source: fileformat2.html, matrix: context, detail)

R-31275-44060-31786-28874-63587-64128-53792-58628

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, matrix: context, detail)

R-31305-35170-11464-64098-34506-16219-33057-18056

After the header and zero padding are zero or more page records. (source: fileformat2.html, matrix: context, detail)

R-31310-22333-18574-57043-24725-36788-30807-54807

In other words, schema S must not currently be in a transaction for sqlite3_snapshot_open(D,S,P) to work, but the database connection D must be out of autocommit mode. (source: c3ref/snapshot_open.html, matrix: context, detail)

R-31312-33516-05278-47140-12669-18608-41834-55008

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, matrix: context, detail)

R-31327-09584-58286-37804-26894-23464-47071-52660

The final column, "detail", contains a text value which carries most of the useful information. (source: eqp.html, checked-by: th3/req1/eqp01.test, matrix: context, detail)

R-31338-54830-28259-56420-63783-19909-54858-57072

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, matrix: context, detail)

R-31352-57778-38921-49124-24515-22151-61743-47337


(source: syntax/numeric-literal.html, matrix: context, detail)

R-31386-03131-57152-48354-62931-03354-07372-50774

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, matrix: context, detail)

R-31406-45734-45366-20105-37202-23050-60311-59562

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, matrix: context, detail)

R-31407-09838-16507-11461-46420-27815-09445-39948

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, matrix: context, detail)

R-31442-26915-27818-62289-58213-54460-29931-06977

The default built-in lower() function works for ASCII characters only. (source: lang_corefunc.html, checked-by: th3/cov1/func02.test, matrix: context, detail)

R-31453-41389-40618-59449-38915-45174-40720-02932

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, matrix: context, detail)

R-31509-21858-22614-04075-64482-13479-08451-58532

The "order" option may be set to either "DESC" or "ASC" (in upper or lower case). (source: fts3.html, matrix: context, detail)

R-31509-40414-28527-23209-39294-56164-06955-51281

The purpose of the likelihood(X,Y) function is to provide a hint to the query planner that the argument X is a boolean that is true with a probability of approximately Y. (source: lang_corefunc.html, checked-by: th3/cov1/where42.test, matrix: context, detail)

R-31518-37056-56231-07788-10281-54147-06570-65506

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, matrix: context, detail)

R-31526-56213-47195-27280-32450-14597-41051-28661

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, matrix: context, detail)

R-31536-32008-60945-18932-27030-19997-64437-42960

Literal values may be integers, floating point numbers, strings, BLOBs, or NULLs. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-31537-00101-65351-40298-33316-64699-39889-60990

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, matrix: context, detail)

R-31538-00384-26321-49073-43364-40462-44753-02654

_. (source: undoredo.html, matrix: context, detail)

R-31559-52189-63274-09210-03777-15240-18014-01548

Inner joins can be freely reordered. (source: optoverview.html, matrix: context, detail)

R-31567-38587-20789-38106-63049-52268-08688-06103

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, matrix: context, detail)

R-31579-59686-01381-52027-49305-56500-23555-06857

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, matrix: context, detail)

R-31624-24737-51221-05558-39670-00793-48763-40650

RTRIM is like BINARY except that extra spaces at the end of either string do not change the result. In other words, strings will compare equal to one another as long as they differ only in the number of spaces at the end. (source: fileformat2.html, checked-by: src/main.c, matrix: context, detail)

R-31676-45509-42539-51511-07128-62436-51993-36875

If X is the integer -9223372036854775808 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, matrix: context, detail)

R-31757-07599-53600-28407-17941-01600-55959-20235

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, matrix: context, detail)

R-31764-59173-05200-42928-33270-18898-11058-33059

julianday(timestring, modifier, modifier, ...) (source: lang_datefunc.html, checked-by: th3/req1/date01.test, matrix: context, detail)

R-31773-41793-43777-15026-65463-02438-20954-63890

If sqlite3_open_v2() is used and the "cache" parameter is present in a URI filename, its value overrides any behavior requested by setting SQLITE_OPEN_PRIVATECACHE or SQLITE_OPEN_SHAREDCACHE flag. (source: c3ref/open.html, checked-by: tcl/e_uri.test, matrix: context, detail)

R-31775-48204-44006-26750-02620-57678-37164-54735

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, matrix: context, detail)

R-31795-57643-34892-44323-47602-12322-63634-37934

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, matrix: context, detail)

R-31812-49659-31326-36358-44931-00819-19755-27412

The size of a blob may not be changed by this interface. (source: c3ref/blob_open.html, checked-by: th3/cov1/vdbeblob01.test, matrix: context, detail)

R-31826-01813-36062-43919-63231-47318-45635-11887

An error is raised if more than one PRIMARY KEY clause appears in a CREATE TABLE statement. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-31839-40105-47825-07965-38954-04263-02531-41060

Both forms of the pragma return the maximum page count. (source: pragma.html, checked-by: th3/req1/pragma12.test, matrix: context, detail)

R-31842-04164-45925-20128-62976-05013-64077-31889

The zeroblob(N) function returns a BLOB consisting of N bytes of 0x00. (source: lang_corefunc.html, checked-by: th3/cov1/func04.test, matrix: context, detail)

R-31855-18665-44731-17316-60627-29707-46771-04515

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, matrix: context, detail)

R-31877-46991-26033-20819-54780-54256-64426-46176

In addition to being a result code, the SQLITE_ABORT value is also used as a conflict resolution mode returned from the sqlite3_vtab_on_conflict() interface. (source: rescode.html, checked-by: th3/cov1/vtab04.test, th3/cov1/vtab07.test, matrix: context, detail)

R-31881-13880-39891-17539-21926-06368-53167-38054

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, matrix: context, detail)

R-31882-08811-51062-63000-47445-51971-26333-04918

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, matrix: context, detail)

R-31883-14373-53297-17557-08649-10879-14648-40339

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, matrix: context, detail)

R-31884-19145-46591-63123-39712-55381-35148-20037

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, matrix: context, detail)

R-31969-57825-42101-14521-32158-26846-01551-49036

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: tcl/e_wal.test, th3/req1/pragma05.test, matrix: context, detail)

R-31984-08010-07046-54406-16085-56792-07633-10679

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, matrix: context, detail)

R-31997-24564-21710-03958-33842-06684-32775-28605

If no schema 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, matrix: context, detail)

R-32023-34269-07081-56751-59037-09134-01490-38261

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, matrix: context, detail)

R-32076-12237-46595-29546-24176-12469-16826-41322

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, matrix: context, detail)

R-32090-20403-62451-54879-55700-60084-08956-01962

Autocommit mode is re-enabled by a COMMIT or ROLLBACK. (source: c3ref/get_autocommit.html, matrix: context, detail)

R-32172-42404-39492-45133-11034-45047-00308-58009

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, matrix: context, detail)

R-32181-50629-37005-34302-07700-29801-11487-35180

Queries that contain a single MIN() or MAX() aggregate function whose argument is the left-most column of an index might be satisfied by doing a single index lookup rather than by scanning the entire table. (source: optoverview.html, matrix: context, detail)

R-32195-19465-48930-47525-56822-22090-53999-25366

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, checked-by: src/vdbe.c, th3/req1/pragma28.test, matrix: context, detail)

R-32235-53300-57293-28888-55345-58030-49173-41178

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, matrix: context, detail)

R-32246-51249-01476-28736-10889-32262-29627-47860

The preupdate hook is disabled by invoking sqlite3_preupdate_hook() with a NULL pointer as the second parameter. (source: c3ref/preupdate_count.html, matrix: context, detail)

R-32266-59420-04967-20715-46228-25200-01200-16446

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, matrix: context, detail)

R-32267-31938-07296-47086-37699-20446-18682-32942

The data_store_directory pragma may modify this variable and cause it to point to memory obtained from sqlite3_malloc. (source: c3ref/data_directory.html, matrix: context, detail)

R-32297-21015-24929-53880-34602-47692-61789-52266

The page_size pragma will only cause an immediate change in the page size if it is issued while the database is still empty (prior to the first CREATE statement) and if the database is not in WAL mode. (source: pragma.html, matrix: context, detail)

R-32326-44592-25744-64223-64465-06212-39042-00138

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, matrix: context, detail)

R-32329-22225-62429-19871-19916-05643-31400-56048

The sqlite_stat4.idx column holds name of the index that the row describes, or in the case of an sqlite_stat4 entry for a WITHOUT ROWID table, the name of the table itself. (source: fileformat2.html, matrix: context, detail)

R-32333-58476-07670-32465-34848-10846-33271-03352

Triggers are automatically dropped when the table that they are associated with (the table-name table) is dropped. (source: lang_createtrigger.html, matrix: context, detail)

R-32341-39358-46818-14772-56147-53577-21121-58224

However if the phrase "WITHOUT ROWID" is added to the end of a CREATE TABLE statement, then the special "rowid" column is omitted. (source: withoutrowid.html, checked-by: tcl/without_rowid5.test, th3/cov1/withoutrowid01.test, matrix: context, detail)

R-32365-09043-50030-24839-64719-45976-15708-15010

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, matrix: context, detail)

R-32369-26304-55789-00588-64019-11696-17983-36545

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, matrix: context, detail)

R-32370-18782-48434-43620-03325-42190-31866-11040

The seventh parameter to the preupdate callback is the final rowid of the row being changed for SQLITE_UPDATE and SQLITE_INSERT changes and is undefined for SQLITE_DELETE changes. (source: c3ref/preupdate_count.html, matrix: context, detail)

R-32434-09092-13813-42395-15886-36394-05508-61902

If the value of expr is NULL, then the result of the CAST expression is also NULL. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-32449-11948-29947-21061-52467-01540-19627-03607

PRAGMA schema.secure_delete; PRAGMA schema.secure_delete = boolean Query or change the secure-delete setting. (source: pragma.html, checked-by: th3/cov1/pragma20.test, th3/cov1/pragma21.test, matrix: context, detail)

R-32485-24703-27801-29483-21531-11705-09294-53002

The RENAME TO syntax changes the name of table-name to new-table-name. (source: lang_altertable.html, checked-by: th3/req1/altertable01.test, matrix: context, detail)

R-32521-20590-49288-35397-47504-42377-60996-54301

The time string is followed by zero or more modifiers. (source: lang_datefunc.html, checked-by: th3/req1/date01.test, matrix: context, detail)

R-32562-20566-46417-07999-12317-06673-44579-53773

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, matrix: context, detail)

R-32575-52606-04029-38072-09330-12543-11814-27885

There can be an arbitrary number of sqlite_stat3 entries per index. (source: fileformat2.html, matrix: context, detail)

R-32586-01296-10189-28566-58677-02270-23105-07978

SELECT statements may be optionally preceded by a single WITH clause that defines one or more common table expressions for use within the SELECT statement. (source: lang_select.html, checked-by: th3/cov1/with01.test, matrix: context, detail)

R-32633-52682-08562-36271-43194-24127-51342-52899

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/th3testvfs.c, matrix: context, detail)

R-32706-07403-21974-02831-34123-06843-55643-09070

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, matrix: context, detail)

R-32737-17936-16355-61809-23249-50193-59951-04545

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, matrix: context, detail)

R-32768-47925-14881-49153-08372-50935-16619-06911

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, matrix: context, detail)

R-32792-60226-60844-50115-44778-21229-22761-46890

The ESCAPE clause cannot appear on the LIKE operator. (source: optoverview.html, checked-by: th3/cov1/where03.test, th3/cov1/where03b.test, matrix: context, detail)

R-32806-65233-63423-39928-44686-28712-07931-12350

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, matrix: context, detail)

R-32809-14620-63808-12852-40065-57653-46928-34414

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, matrix: context, detail)

R-32857-15826-08814-08217-40160-38064-19925-14488

Subsequent calls to sqlite3_get_auxdata(C,N) return P from the most recent sqlite3_set_auxdata(C,N,P,X) call if the metadata is still valid or NULL if the metadata has been discarded. (source: c3ref/get_auxdata.html, matrix: context, detail)

R-32918-61474-62391-07743-12159-44767-00770-02393

Before entering a trigger program the value returned by sqlite3_changes() function is saved. After the trigger program has finished, the original value is restored. (source: c3ref/changes.html, checked-by: tcl/e_changes.test, matrix: context, detail)

R-32925-06786-44484-40389-19544-51015-10010-30515

Each column name or expression can be followed by one of the "ASC" or "DESC" keywords to indicate sort order. (source: lang_createindex.html, checked-by: th3/req1/createidx02.test, matrix: context, detail)

R-32977-38363-55737-64786-46399-31149-31160-28820

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. (source: optoverview.html, matrix: context, detail)

R-33035-16498-10379-54790-22685-33042-10966-12535

If a memory allocation fails, then SQLITE_NOMEM is returned. (source: c3ref/complete.html, checked-by: th3/cov1/complete01.test, matrix: context, detail)

R-33038-09382-52096-22256-12094-15064-07280-37767

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, matrix: context, detail)

R-33075-33190-25707-00729-29148-31049-04309-45993

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, matrix: context, detail)

R-33080-59193-42664-27310-42541-31106-33090-39782

Checkpoints initiated by this mechanism are PASSIVE. (source: c3ref/wal_autocheckpoint.html, checked-by: tcl/e_walauto.test, matrix: context, detail)

R-33113-07215-37933-59376-21317-00912-14100-16891

The iRowid field is the rowid (the first of the 3 to 11 columns in the R*Tree) for the element being considered. iRowid is only valid for leaves. (source: rtree.html, matrix: context, detail)

R-33124-58846-63098-57444-60113-38939-22033-09777

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, matrix: context, detail)

R-33140-21501-29804-63127-48240-59602-40241-17867

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, th3/cov1/where03b.test, matrix: context, detail)

R-33142-02092-43419-10432-03484-54260-43121-37781

AUTOINCREMENT does not work on WITHOUT ROWID tables. (source: withoutrowid.html, checked-by: tcl/without_rowid5.test, th3/cov1/withoutrowid01.test, matrix: context, detail)

R-33198-05775-12486-51098-43766-32149-25799-18917

In order to succeed, a call to sqlite3_snapshot_open(D,S,P) must be the first operation following the BEGIN that takes the schema S out of autocommit mode. (source: c3ref/snapshot_open.html, matrix: context, detail)

R-33211-38833-64331-54724-35381-31821-05246-63257

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, matrix: context, detail)

R-33257-44249-04384-28673-29527-48027-05174-23036

The update hook is not invoked when WITHOUT ROWID tables are modified. (source: c3ref/update_hook.html, checked-by: tcl/hook.test, matrix: context, detail)

R-33315-53384-19536-00039-42426-59902-48545-24529

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, matrix: context, detail)

R-33316-19795-08370-35100-15159-39307-16097-56767

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/th3util.c, matrix: context, detail)

R-33326-45252-38720-14593-54555-59144-23018-05599

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, matrix: context, detail)

R-33352-16228-19462-25047-13980-23357-27400-59118

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, checked-by: th3/cov1/vdbeaux01.test, matrix: context, detail)

R-33368-33178-21159-57347-39405-35254-59100-49447

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/th3pcache.c, matrix: context, detail)

R-33393-31741-20908-00667-39287-64680-56276-36828

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, matrix: context, detail)

R-33401-06099-44102-08352-15092-58623-33401-34005

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, matrix: context, detail)

R-33414-20006-38430-38330-20007-08440-33108-23538

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, matrix: context, detail)

R-33488-11573-60565-11312-47099-14861-16674-34821

Since functions are prohibited in the WHERE clause of a CREATE INDEX statement, so too are the LIKE, GLOB, MATCH, and REGEXP operators. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-33490-49513-63336-09770-17828-12612-45403-52100

The third column is the number of pages in the write-ahead log file that have been successfully moved back into the database file at the conclusion of the checkpoint. (source: pragma.html, matrix: context, detail)

R-33496-49460-40885-47410-47365-30809-19419-02033

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, matrix: context, detail)

R-33509-39458-36310-35502-14516-21374-43920-49454

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, matrix: context, detail)

R-33528-20612-64279-03791-45165-25207-10127-32608

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, matrix: context, detail)

R-33553-19363-35042-00573-64070-53843-36958-05658

The subquery does not use OFFSET. (source: optoverview.html, matrix: context, detail)

R-33570-18895-27619-21793-53436-58897-32599-21994

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, matrix: context, detail)

R-33599-53132-08850-48831-58699-38998-10150-06398

The sqlite_stat4.nEq column holds a list of N integers where the K-th integer is the approximate number of entries in the index whose left-most K columns exactly match the K left-most columns of the sample. (source: fileformat2.html, matrix: context, detail)

R-33626-44500-44579-55445-20026-07899-19169-03498

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, matrix: context, detail)

R-33626-48418-46855-58211-38849-29467-54588-01790

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, matrix: context, detail)

R-33626-61085-00249-11901-41489-60441-37285-33795

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>?) 0|1|0|SCAN TABLE t2 (source: eqp.html, checked-by: tcl/eqp.test, matrix: context, detail)

R-33638-42108-26905-16665-62411-42905-33144-33922

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, matrix: context, detail)

R-33670-36097-38044-00457-34720-22769-46022-27724

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, matrix: context, detail)

R-33693-50180-37638-14993-01835-21324-19267-11438

The REGEXP operator is a special syntax for the regexp() user function. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-33707-40199-39350-00147-14640-22092-62266-02343

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, matrix: context, detail)

R-33708-43819-48693-15112-15003-18731-38490-26979

The content allows the text being indexed to be stored in a separate table distinct from the FTS4 table, or even outside of SQLite. (source: fts3.html, matrix: context, detail)

R-33710-56344-23353-36559-53018-17291-08260-37097

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, matrix: context, detail)

R-33750-29536-47450-45123-25964-11560-21995-55948

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, matrix: context, detail)

R-33788-46243-41692-58767-41171-41314-21464-32804

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, matrix: context, detail)

R-33800-32193-29222-19847-14904-43461-36254-14018

If the required lock still cannot be obtained, then the database is skipped and an attempt made to flush any dirty pages belonging to the next (if any) database. (source: c3ref/db_cacheflush.html, matrix: context, detail)

R-33841-62945-13926-63288-41300-28246-26461-11874

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, matrix: context, detail)

R-33883-28833-60318-48575-53923-47015-06615-40154

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, matrix: context, detail)

R-33917-24086-34361-61973-51178-03721-35954-00662

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, matrix: context, detail)

R-33948-22286-15597-10485-25275-41982-01072-17156

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, matrix: context, detail)

R-33950-57093-23380-64554-61801-30987-12746-10574

All indices and triggers associated with the table are also deleted. (source: lang_droptable.html, checked-by: slt/slt_lang_droptable.test, th3/req1/droptable01.test, matrix: context, detail)

R-33977-57271-59293-02679-37541-34864-44396-22637

The left-most column is column 0 for these routines. (source: c3ref/column_database_name.html, matrix: context, detail)

R-33987-21303-29717-40761-22942-02669-49814-53507

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 is not a join. (source: optoverview.html, matrix: context, detail)

R-34009-51042-01012-14502-52205-32655-22973-26621

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, matrix: context, detail)

R-34021-38482-31030-34652-01469-03047-61601-46080

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, matrix: context, detail)

R-34023-52929-12261-02515-22772-45177-48508-47679

The query string is optional. (source: uri.html, matrix: context, detail)

R-34027-00617-24854-21763-47858-39540-20896-63477

If the blob handle being closed was opened for read-write access, and if the database is in auto-commit mode and there are no other open read-write blob handles or active write statements, the current transaction is committed. (source: c3ref/blob_close.html, checked-by: tcl/e_blobclose.test, matrix: context, detail)

R-34032-15251-25860-60069-39254-45811-22569-45330


(source: syntax/cte-table-name.html, matrix: context, detail)

R-34033-38275-27809-01808-11320-42229-41327-29740

Note the last bullet in particular. (source: c3ref/get_auxdata.html, matrix: context, detail)

R-34109-39108-27898-16254-24563-58797-32171-17937

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, matrix: context, detail)

R-34146-30782-53907-40582-61923-47415-21722-12527

Column zColumn is part of an index, PRIMARY KEY or UNIQUE constraint and the blob is being opened for read/write access (source: c3ref/blob_open.html, checked-by: tcl/e_blobopen.test, th3/cov1/vdbeblob01.test, matrix: context, detail)

R-34186-52914-35981-17820-54007-24600-55033-63809

The rank of the column within the index. (0 means left-most.) (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15.test, matrix: context, detail)

R-34234-52126-13891-36855-21265-08475-46071-60317

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, th3/cov1/where03b.test, matrix: context, detail)

R-34264-15842-51908-27355-58812-13180-15279-38051

The legacy_file_format pragma can be used to cause SQLite to create new database files using format 1. (source: fileformat2.html, checked-by: th3/req1/fileformat01.test, matrix: context, detail)

R-34271-33106-55360-31605-05941-37144-32278-15012

PRAGMA automatic_index; PRAGMA automatic_index = boolean; Query, set, or clear the automatic indexing capability. (source: pragma.html, checked-by: tcl/autoindex1.test, th3/req1/pragma08.test, matrix: context, detail)

R-34280-42283-63975-25394-58653-47378-35851-53437

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, matrix: context, detail)

R-34293-31480-01160-31597-61187-16604-15204-31151

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, matrix: context, detail)

R-34326-56357-56903-53526-53046-15549-19745-22986

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, matrix: context, detail)

R-34354-51417-57740-57504-01542-51579-51443-23369

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, matrix: context, detail)

R-34391-24921-52036-19820-43252-56353-24608-07545

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, matrix: context, detail)

R-34400-33772-12568-07085-14602-53889-15876-12187

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, matrix: context, detail)

R-34407-33329-56662-13063-42233-50984-46328-08443

The sqlite3_vsnprintf() routine is a varargs version of sqlite3_snprintf(). (source: c3ref/mprintf.html, checked-by: th3/req1/malloc01.test, matrix: context, detail)

R-34456-00884-53550-63882-43324-33974-40030-43057

The first form of this pragma queries the current journaling mode for database. (source: pragma.html, checked-by: th3/req1/pragma23.test, matrix: context, detail)

R-34457-09668-37447-61343-26020-24066-28137-60426

"1" if the index is a partial index and "0" if not. (source: pragma.html, checked-by: tcl/index7.test, th3/req1/pragma15.test, matrix: context, detail)

R-34489-53953-36029-13063-60538-08284-18396-26034

Nine static mutexes are used by the current version of SQLite. (source: c3ref/mutex_alloc.html, matrix: context, detail)

R-34494-34867-10904-51436-14050-30444-55567-08867

That ORDER BY clause will apply across all elements of the compound. (source: lang_select.html, checked-by: th3/req1/select02.test, matrix: context, detail)

R-34519-06271-04461-63947-59293-07505-45589-19404

SQLITE_BUSY is returned in this case. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, matrix: context, detail)

R-34526-35712-49832-15543-35160-30600-56964-59649

By default, the error code is SQLITE_ERROR. (source: c3ref/result_blob.html, checked-by: th3/req1/result01.test, matrix: context, detail)

R-34561-00264-36299-40120-12079-02627-14730-26524

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, matrix: context, detail)

R-34616-57962-62200-63763-25892-01209-38424-05918

Cache sharing is enabled and disabled for an entire process. (source: c3ref/enable_shared_cache.html, matrix: context, detail)

R-34648-44875-03220-54825-01081-20056-64407-58283

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, matrix: context, detail)

R-34657-61226-12617-43692-19153-03581-17665-29840

The "PRAGMA cache_spill=N" form of this pragma sets a minimum cache size threshold required for spilling to occur. (source: pragma.html, checked-by: tcl/pragma2.test, matrix: context, detail)

R-34696-31731-45418-63028-04604-07803-00716-15058

When a prepared statement runs, it first checks the schema cookie to ensure the value is the same as when the statement was prepared and if the schema cookie has changed, the statement either automatically reprepares and reruns or it aborts with an SQLITE_SCHEMA error. (source: fileformat2.html, matrix: context, detail)

R-34706-05629-19212-06603-14274-22035-31068-37221

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, matrix: context, detail)

R-34720-58307-10931-58766-48844-01756-24190-06684

SQLite will also attempt to use indices to help satisfy GROUP BY clauses and the DISTINCT keyword. (source: optoverview.html, matrix: context, detail)

R-34730-53445-15838-11944-46041-12438-53750-14468

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, matrix: context, detail)

R-34745-08839-34242-42308-04034-17314-18313-24494

If the xDelUser variable is set to a non-NULL value, then after the query has finished running SQLite automatically invokes it with the value of the pUser variable as the only argument. (source: rtree.html, matrix: context, detail)

R-34751-04246-20772-53163-23654-34620-17677-07511

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, matrix: context, detail)

R-34751-18293-04541-58685-13120-57905-41689-08740

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, matrix: context, detail)

R-34773-62253-14389-56183-06695-27653-47306-47953

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, matrix: context, detail)

R-34782-18311-17741-53218-12879-22753-50681-05507

Unless SQLITE_MISUSE is returned, this function sets the database connection error code and message accessible via sqlite3_errcode() and sqlite3_errmsg() and related functions. (source: c3ref/blob_write.html, checked-by: tcl/e_blobwrite.test, matrix: context, detail)

R-34789-59934-28389-39071-40559-33528-38029-45906

The DESC keyword is ignored in indexes for formats 1, 2, and 3. (source: fileformat2.html, checked-by: th3/req1/fileformat01.test, matrix: context, detail)

R-34809-04839-09181-10394-33851-21757-50200-61577

Let X be U-35. If the payload size P is less than or equal to X then the entire payload is stored on the b-tree leaf page. (source: fileformat2.html, matrix: context, detail)

R-34814-22035-19752-61012-44426-48112-33201-20182

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, matrix: context, detail)

R-34816-32505-14191-41651-46944-10844-62255-46096

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, matrix: context, detail)

R-34818-13664-64271-58157-25090-18668-59799-37546

The 'now' argument to date and time functions always returns exactly the same value for multiple invocations within the same sqlite3_step() call. (source: lang_datefunc.html, checked-by: tcl/date.test, th3/cov1/date4.test, matrix: context, detail)

R-34837-12462-62420-33748-07267-00170-63881-53119

The first argument to the callback is a copy of the third argument to sqlite3_update_hook(). (source: c3ref/update_hook.html, checked-by: th3/cov1/main15.test, matrix: context, detail)

R-34918-27009-22149-14301-56506-15307-06517-16770

The INDEXED BY and NOT INDEXED clauses are not supported for UPDATE and DELETE statements. (source: lang_createtrigger.html, matrix: context, detail)

R-34926-03360-27843-47752-48355-13649-05844-37285

SQLITE_CONFIG_WIN32_HEAPSIZE takes a 32-bit unsigned integer value that specifies the maximum size of the created heap. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, matrix: context, detail)

R-34933-01612-63826-59975-42480-58884-65014-06327

The names returned are the original un-aliased names of the database, table, and column. (source: c3ref/column_database_name.html, matrix: context, detail)

R-34963-21048-59232-16607-21091-43824-49294-11066

If the sqlite_sequence.seq field of an AUTOINCREMENT table is already at the largest integer value (9223372036854775807) then attempts to add new rows to that table with an automatically generated integer primary will fail with an SQLITE_FULL error. (source: fileformat2.html, matrix: context, detail)

R-34979-54336-33279-53576-25867-30233-28350-04331

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, matrix: context, detail)

R-34993-45031-36632-60048-51944-50307-62063-53207

The maximum allowed mmap size will be silently truncated if necessary so that it does not exceed the compile-time maximum mmap size set by the SQLITE_MAX_MMAP_SIZE compile-time option. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, matrix: context, detail)

R-34998-49915-07664-55575-37059-29902-40579-47714

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, matrix: context, detail)

R-35002-09502-01413-09334-58784-32407-44903-62982

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, matrix: context, detail)

R-35003-32738-64790-42236-58307-21158-57428-12443

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, matrix: context, detail)

R-35036-36587-25670-53930-46391-17517-28623-46452

For a WITHOUT ROWID table, N will be the number of columns in the primary key. (source: fileformat2.html, matrix: context, detail)

R-35040-01730-43982-30750-52073-28087-17408-35843

A snapshot will fail to open if it has been overwritten by a checkpoint. (source: c3ref/snapshot_open.html, matrix: context, detail)

R-35040-63004-09413-17967-18828-35998-50185-50384

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, matrix: context, detail)

R-35049-22776-26849-33887-63149-61153-21714-11740

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, matrix: context, detail)

R-35088-43392-22185-31834-16686-27011-41097-22750

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, matrix: context, detail)

R-35092-12727-62894-63814-26795-55319-59085-22626

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, matrix: context, detail)

R-35105-34724-05666-13344-17136-11047-06163-46281

If pMem is NULL and N is non-zero, then each database connection does an initial bulk allocation for page cache memory from sqlite3_malloc() sufficient for N cache lines if N is positive or of -1024*N bytes if N is negative, . (source: c3ref/c_config_covering_index_scan.html, matrix: context, detail)

R-35109-49139-58862-12127-06342-61829-38093-58472

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, matrix: context, detail)

R-35111-05628-59609-35925-11859-38596-24754-51119

If an error occurs while committing the transaction, an error code is returned and the transaction rolled back. (source: c3ref/blob_close.html, checked-by: tcl/e_blobclose.test, matrix: context, detail)

R-35113-43214-56626-24487-53216-55188-49391-33418

Unless the column is an INTEGER PRIMARY KEY or the table is a WITHOUT ROWID table or the column is declared NOT NULL, SQLite allows NULL values in a PRIMARY KEY column. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-35129-58141-36157-07998-30656-14308-25733-01656

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, matrix: context, detail)

R-35165-50266-45227-34036-24566-60205-43317-23628


(source: syntax/create-view-stmt.html, matrix: context, detail)

R-35196-57110-30977-27033-46331-62759-56891-62679

There is a single row in the sqlite_sequence table for each ordinary table that uses AUTOINCREMENT. (source: fileformat2.html, matrix: context, detail)

R-35210-63508-42678-48683-05229-58965-46588-04293

The sqlite3_libversion_number() function returns an integer equal to SQLITE_VERSION_NUMBER. (source: c3ref/libversion.html, checked-by: src/main.c, th3/th3main.c, matrix: context, detail)

R-35214-06564-22940-62614-38557-57045-54055-01727

Format 4 also adds two new boolean record type values (serial types 8 and 9). (source: fileformat2.html, checked-by: th3/req1/fileformat01.test, matrix: context, detail)

R-35224-32827-55933-44478-17553-06933-55583-57822

The table named in the table_info pragma can also be a view. (source: pragma.html, matrix: context, detail)

R-35229-17830-32159-37744-59002-46141-27438-26089

A string constant is formed by enclosing the string in single quotes ('). (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-35254-48865-63817-52724-57944-24327-24630-05485

A call to one of the above APIs creates a new SQL function named by the second parameter (zQueryFunc or zGeom). (source: rtree.html, matrix: context, detail)

R-35268-31914-29013-65007-60500-40286-59986-01540

The value returned by sqlite3_memory_highwater(1) is the high-water mark prior to the reset. (source: c3ref/memory_highwater.html, matrix: context, detail)

R-35272-30329-38196-23593-15037-30954-61861-19508

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, matrix: context, detail)

R-35290-16460-32571-10958-08768-45451-01146-58774

Foreign key constraints are immediate by default. (source: foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys12.test, matrix: context, detail)

R-35311-10820-21037-47746-53186-51250-62481-54055

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, matrix: context, detail)

R-35325-25517-01545-24178-13996-21143-53189-45296

An uncorrelated subquery is evaluated only once and the result reused as necessary. (source: lang_expr.html, checked-by: th3/req1/select01.test, matrix: context, detail)

R-35340-24525-47723-05351-53509-38292-37828-03543

The sqlite3_aggregate_context(C,N) routine returns a NULL pointer when first called if N is less than or equal to zero or if a memory allocate error occurs. (source: c3ref/aggregate_context.html, checked-by: th3/req1/aggcntx01.test, matrix: context, detail)

R-35362-38850-39624-46125-42742-24667-28362-39621

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, matrix: context, detail)

R-35371-58843-38332-21753-13618-41551-34238-06657

The ATTACH DATABASE statement adds another database file to the current database connection. (source: lang_attach.html, checked-by: th3/req1/attach01.test, matrix: context, detail)

R-35403-15921-01482-46319-62511-08471-58882-52506


(source: syntax/alter-table-stmt.html, checked-by: th3/req1/altertable01.test, matrix: context, detail)

R-35418-18016-10993-27937-35322-13021-34119-58359


(source: syntax/drop-trigger-stmt.html, checked-by: th3/cov1/trigger03.test, matrix: context, detail)

R-35443-03595-46720-21224-13105-18323-15585-18563

Ifnull() must have exactly 2 arguments. (source: lang_corefunc.html, checked-by: th3/cov1/func01.test, matrix: context, detail)

R-35454-31058-05961-25112-64343-26549-00069-20498

If P>X and K>X then the first M bytes of P are stored on the btree page and the remaining P-M bytes are stored on overflow pages. (source: fileformat2.html, matrix: context, detail)

R-35460-03740-02108-04893-51916-60089-58945-40785

Registering a NULL function disables the callback. (source: c3ref/commit_hook.html, matrix: context, detail)

R-35473-09323-51070-49381-06532-56561-01297-03559


(source: syntax/result-column.html, matrix: context, detail)

R-35496-03635-05800-19681-11567-09775-48933-50480

The name of the index. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15.test, matrix: context, detail)

R-35503-60218-20246-16465-03448-36808-43658-06556

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, matrix: context, detail)

R-35553-21226-59052-33659-22709-48132-34010-52118

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, matrix: context, detail)

R-35592-43376-11648-07628-49784-57585-43144-43201

If pragma integrity_check finds no errors, a single row with the value 'ok' is returned. (source: pragma.html, checked-by: th3/req1/integrityck01.test, matrix: context, detail)

R-35620-55265-30366-61678-07542-39367-03113-47688

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, matrix: context, detail)

R-35640-30414-24972-23354-27947-42421-53546-27717

The sqlite3_value_dup(V) interface returns NULL if V is NULL or if a memory allocation fails. (source: c3ref/value_dup.html, matrix: context, detail)

R-35668-58241-09537-53108-57582-24768-01452-25578

The phrase "VALUES(expr-list)" means the same thing as "SELECT expr-list". (source: lang_select.html, checked-by: th3/cov1/select30.test, th3/req1/select02.test, matrix: context, detail)

R-35698-25375-34264-35367-42002-17994-39861-33131

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, matrix: context, detail)

R-35711-48727-49492-05161-09107-16114-44571-60110

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, matrix: context, detail)

R-35739-57436-25800-46947-32358-09819-57778-06393

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, matrix: context, detail)

R-35764-28041-14003-29144-25311-37428-61666-13825

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, matrix: context, detail)

R-35765-61623-59690-19582-04854-45693-22489-08520

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, matrix: context, detail)

R-35802-14059-47020-23527-06222-22948-08783-35470

Nor is the update hook invoked when rows are deleted using the truncate optimization. (source: c3ref/update_hook.html, checked-by: th3/cov1/main15.test, matrix: context, detail)

R-35812-46755-23531-40873-62145-48640-15024-41940

The default journal size limit is -1 (no limit). (source: pragma.html, checked-by: th3/req1/pragma26.test, matrix: context, detail)

R-35840-33204-13129-04501-28754-46758-55672-28059

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, matrix: context, detail)

R-35856-58769-58714-05667-00872-44195-43278-26599

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, matrix: context, detail)

R-35865-29619-35015-08784-17694-42068-56782-50747

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, matrix: context, detail)

R-35880-12325-57817-26418-36971-18732-46777-12474

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, matrix: context, detail)

R-35892-30289-55875-11491-60713-08800-59610-09295

For a command of the form "REINDEX name", a match against collation-name takes precedence over a match against index-name or table-name. (source: lang_reindex.html, checked-by: tcl/e_reindex.test, matrix: context, detail)

R-35921-30782-30597-38751-45197-16333-41298-65365

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, matrix: context, detail)

R-35945-11759-33348-59186-12007-55771-30323-25128

The sqlite3_mutex_alloc() routine returns NULL if it is unable to allocate the requested mutex. (source: c3ref/mutex_alloc.html, matrix: context, detail)

R-36007-42565-41988-28835-07682-45738-21986-28193

The sqlite3_realloc64(X,N) interfaces works the same as sqlite3_realloc(X,N) except that N is a 64-bit unsigned integer instead of a 32-bit signed integer. (source: c3ref/free.html, checked-by: th3/req1/malloc02.test, matrix: context, detail)

R-36018-21755-34988-08386-62029-36954-65009-29361

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, matrix: context, detail)

R-36043-10590-35190-29655-36320-51519-10161-16668

Changes made as part of foreign key actions are included in the count, but those made as part of REPLACE constraint resolution are not. (source: c3ref/total_changes.html, checked-by: tcl/e_totalchanges.test, matrix: context, detail)

R-36097-50928-12790-61017-20060-26535-57569-32056

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, matrix: context, detail)

R-36103-43483-56354-57798-31615-25926-09784-32512

The sqlite_stat3.nLt holds the approximate number of entries in the index whose left-most column is less than the sample. (source: fileformat2.html, matrix: context, detail)

R-36147-61857-54581-58200-55810-07092-59837-08687

The second parameter to the preupdate callback is a pointer to the database connection that registered the preupdate hook. (source: c3ref/preupdate_count.html, matrix: context, detail)

R-36185-29671-26091-33323-34163-48928-21638-35689

If the column-name list is omitted, then the names of the columns in the view are derived from the names of the result-set columns in the select-stmt. (source: lang_createview.html, matrix: context, detail)

R-36190-27688-09198-02833-32879-47498-11674-13730

PRAGMA schema.page_size; PRAGMA schema.page_size = bytes; Query or set the page size of the database. (source: pragma.html, matrix: context, detail)

R-36195-31555-35544-12860-62754-30693-28143-39954

The usual INSERT, UPDATE, and DELETE commands work on an R*Tree index just like on regular tables. (source: rtree.html, matrix: context, detail)

R-36231-30731-18114-11584-03409-00455-24711-59821

The COLLATE operator has a higher precedence (binds more tightly) than any binary operator and any unary prefix operator except "~". (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-36239-04077-08470-54931-40517-19628-02448-15955

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, matrix: context, detail)

R-36265-51196-56439-27074-26615-17035-18675-11586

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, matrix: context, detail)

R-36322-06257-02337-56371-28217-24228-64026-14937

When memory allocation statistics are disabled, the following SQLite interfaces become non-operational: sqlite3_memory_used() sqlite3_memory_highwater() sqlite3_soft_heap_limit64() sqlite3_status64() (source: c3ref/c_config_covering_index_scan.html, matrix: context, detail)

R-36327-17224-30714-13238-62239-10610-34314-51642

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, matrix: context, detail)

R-36328-16367-14145-21377-30808-40796-28392-26990

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: tcl/e_wal.test, th3/req1/pragma05.test, matrix: context, detail)

R-36338-64112-59318-08203-11484-65439-59164-45202

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, matrix: context, detail)

R-36340-52470-54578-03049-38337-36481-45812-37806

The sqlite_master.sql is NULL for the internal indexes that are automatically created by UNIQUE or PRIMARY KEY constraints. (source: fileformat2.html, matrix: context, detail)

R-36357-08369-42604-06511-16723-17506-10955-34539

If the WHERE clause expression evaluates to NULL or to false for some rows of the table, then those rows are omitted from the index. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-36394-12461-27768-64371-31765-36302-25885-56308

SQLite will always use the table b-tree key rather than the NULL value when referencing the INTEGER PRIMARY KEY column. (source: fileformat2.html, matrix: context, detail)

R-36399-45840-38419-49366-05932-18953-07682-47549

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, matrix: context, detail)

R-36454-62742-16892-23298-43597-08327-51055-05223


(source: syntax/table-constraint.html, matrix: context, detail)

R-36476-47203-56638-47160-44339-35126-05623-44628

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, matrix: context, detail)

R-36545-62345-61603-06376-33533-12580-59655-26356

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, matrix: context, detail)

R-36570-50350-22690-62620-40069-12741-59912-39682

Transactions can be started manually using the BEGIN command. (source: lang_transaction.html, matrix: context, detail)

R-36592-02772-49597-21134-35176-13314-34028-16274

The SQLITE_CONFIG_COVERING_INDEX_SCAN option takes a single integer argument which is interpreted as a boolean in order to enable or disable the use of covering indices for full table scans in the query optimizer. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, matrix: context, detail)

R-36608-10930-24220-22579-46351-14737-62834-54918

The arguments can be just about any text as long as it has balanced parentheses. (source: lang_createvtab.html, matrix: context, detail)

R-36609-39554-02465-47159-11232-33677-21086-13785

"c" if the index was created by a CREATE INDEX statement, "u" if the index was created by a UNIQUE constraint, or "pk" if the index was created by a PRIMARY KEY constraint. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15.test, matrix: context, detail)

R-36610-45292-54097-28024-65527-46641-42678-27744

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, matrix: context, detail)

R-36612-64789-14111-46629-37131-49911-14128-04823

But the next query can not use the partial index: SELECT * FROM tab2 WHERE b=456; -- cannot use partial index (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-36620-34941-18970-44416-30193-42757-18271-60128

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, matrix: context, detail)

R-36651-49821-06866-46556-29729-37304-36967-33618

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, matrix: context, detail)

R-36697-25556-10113-60762-16879-48954-19862-42086

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, matrix: context, detail)

R-36706-10507-15107-19022-47834-34931-59903-48809

The PRAGMA wal_checkpoint command can be used to invoke this interface from SQL. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, matrix: context, detail)

R-36754-20545-04159-27572-44208-64137-08044-49180

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, checked-by: th3/cov1/func02.test, matrix: context, detail)

R-36822-49898-51267-28801-22242-39926-43860-26511

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, matrix: context, detail)

R-36834-48950-59089-31267-28729-41659-26952-44127

On the other hand, the virtual terms themselves never causes tests to be performed on input rows. (source: optoverview.html, matrix: context, detail)

R-36850-34127-02357-30625-11793-50017-46803-57751

The likely(X) function is short-hand for likelihood(X,0.9375). (source: lang_corefunc.html, checked-by: src/resolve.c, matrix: context, detail)

R-36859-05333-15357-38800-46653-01342-64657-49103

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/th3testvfs.c, matrix: context, detail)

R-36924-43758-45428-63164-00988-45045-48041-44762

By default, every row in SQLite has a special column, usually called the "rowid", that uniquely identifies that row within the table. (source: withoutrowid.html, checked-by: tcl/rowid.test, tcl/without_rowid5.test, th3/cov1/withoutrowid01.test, matrix: context, detail)

R-36947-39582-19332-41522-37066-30341-40007-20770

A WITHOUT ROWID table uses an index b-tree rather than a table b-tree for storage. (source: fileformat2.html, matrix: context, detail)

R-36996-21017-11130-54775-34081-21546-00217-47155

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, matrix: context, detail)

R-37002-28871-53113-54694-45983-06407-17129-31700

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 rowid can still be used to look up entries even when "NOT INDEXED" is specified. (source: lang_indexedby.html, checked-by: tcl/indexedby.test, matrix: context, detail)

R-37002-32774-01005-00409-47681-36421-50128-30923

The two-byte integer at offset 3 gives the number of cells on the page. (source: fileformat2.html, checked-by: src/btree.c, matrix: context, detail)

R-37014-01401-21089-17070-29691-04562-53032-12534

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, matrix: context, detail)

R-37019-57602-33488-54627-46176-35899-62282-07201

Nor does REPLACE increment the change counter. (source: lang_conflict.html, checked-by: th3/req1/conflict02.test, matrix: context, detail)

R-37051-49391-21174-04435-43019-60258-26390-24659

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, matrix: context, detail)

R-37099-37053-38363-03939-37447-24344-49731-34436

Similarly, if URI filenames are not recognized when the database connection is first opened, they will not be recognized by ATTACH. (source: uri.html, matrix: context, detail)

R-37111-22855-42072-00494-43554-65197-44250-55427

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, matrix: context, detail)

R-37127-14782-63396-43128-39237-20363-34771-13214

A call to this routine stores N bytes of randomness into buffer P. (source: c3ref/randomness.html, checked-by: th3/cov1/random01.test, matrix: context, detail)

R-37137-45553-37587-45054-45881-44464-34262-16786

In some pragmas, the schema name is meaningless and is simply ignored. (source: pragma.html, checked-by: th3/req1/pragma01.test, matrix: context, detail)

R-37257-17813-38895-36946-60878-55344-03990-64044

Note that upon successful completion of an SQLITE_CHECKPOINT_TRUNCATE, the log file will have been truncated to zero bytes and so both *pnLog and *pnCkpt will be set to zero. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, th3/req1/checkpoint01.test, matrix: context, detail)

R-37265-56925-55777-11363-20675-46285-52171-25062

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, matrix: context, detail)

R-37271-65264-45647-61848-25356-06624-30160-41691

Compute the current unix timestamp. SELECT strftime('%s','now'); (source: lang_datefunc.html, checked-by: th3/req1/date01.test, matrix: context, detail)

R-37283-61388-33413-37250-53520-10226-00265-15596

All these names are aliases for one another and work equally well in any context. (source: autoinc.html, checked-by: th3/req1/autoinc01.test, matrix: context, detail)

R-37284-06965-27563-13787-56362-60751-57097-13652

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, matrix: context, detail)

R-37286-42536-47612-10625-41273-62615-36449-24349

/* 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, matrix: context, detail)

R-37287-38238-38896-00540-17030-60706-04523-55035

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, matrix: context, detail)

R-37304-39405-25413-14317-50314-46541-26352-18136

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, matrix: context, detail)

R-37306-64424-24476-44387-21141-11283-27580-01252

If an SQL table is created using the "WITHOUT ROWID" clause at the end of its CREATE TABLE statement, then that table is a WITHOUT ROWID table and uses a different on-disk representation. (source: fileformat2.html, matrix: context, detail)

R-37338-25090-02456-18897-36801-31063-06233-22705

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, matrix: context, detail)

R-37342-04007-10606-64148-39195-51101-42464-04051

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, matrix: context, detail)

R-37367-57340-65398-65389-19439-49960-45341-59090

In a well-formed sqlite_stat3 table, the samples for any single index must appear in the same order that they occur in the index. In other words, if the entry with left-most column S1 is earlier in the index b-tree than the entry with left-most column S2, then in the sqlite_stat3 table, sample S1 must have a smaller rowid than sample S2. (source: fileformat2.html, matrix: context, detail)

R-37390-56181-43004-09239-55854-05379-58019-03084

Pending write operations always fail with this error when a rollback occurs. (source: rescode.html, matrix: context, detail)

R-37412-09436-16826-17483-13770-41037-63628-17339

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, checked-by: th3/cov1/vdbeaux01.test, matrix: context, detail)

R-37434-19929-01541-26191-03532-28681-18224-01267

Abs(X) returns NULL if X is NULL. (source: lang_corefunc.html, checked-by: src/func.c, th3/cov1/func01.test, matrix: context, detail)

R-37497-42412-17450-21022-09662-57031-07761-02196

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, checked-by: src/btree.c, matrix: context, detail)

R-37514-35566-00640-25084-57688-04377-16048-30214

A value of 1 means UTF-8. (source: fileformat2.html, checked-by: th3/req1/fileformat03.test, matrix: context, detail)

R-37526-53407-04018-28041-58853-34090-01926-44362

The second integer is the approximate number of rows in the index that have the same value in the first column of the index. (source: fileformat2.html, matrix: context, detail)

R-37639-55938-19671-37883-10811-32762-31289-05215

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, checked-by: tcl/e_blobopen.test, th3/req1/blob01.test, matrix: context, detail)

R-37652-04911-31573-58834-59963-33871-29287-50836

SQLITE_STATUS_PARSER_STACK The *pHighwater parameter records the deepest parser stack. The *pCurrent value is undefined. The *pHighwater value is only meaningful if SQLite is compiled with YYTRACKMAXSTACKDEPTH. (source: c3ref/c_status_malloc_count.html, matrix: context, detail)

R-37688-43700-53103-62151-49236-10303-34051-45197

Use the sqlite3_blob_bytes() interface to determine the size of the opened blob. (source: c3ref/blob_open.html, checked-by: th3/cov1/vdbeblob01.test, matrix: context, detail)

R-37736-42616-04169-53390-00856-45033-53695-63004

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, matrix: context, detail)

R-37760-36374-21935-46380-43039-31326-26713-65030

The sqlite3_table_column_metadata() interface returns SQLITE_OK and fills in the non-NULL pointers in the final five arguments with appropriate values if the specified column exists. (source: c3ref/table_column_metadata.html, checked-by: th3/cov1/metadata01.test, matrix: context, detail)

R-37773-10272-55463-21527-23891-50096-65319-03368

For a table or view, the tbl_name column is a copy of the name column. (source: fileformat2.html, matrix: context, detail)

R-37783-42715-27194-59163-53660-14941-49401-50024

Any %HH escape sequences in the query parameters are resolved prior to being appended to the xOpen filename. (source: uri.html, matrix: context, detail)

R-37795-21752-00915-21672-38602-04515-27824-24579

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_covering_index_scan.html, checked-by: th3/cov1/log01.test, th3/th3main.c, matrix: context, detail)

R-37801-37633-06717-41084-61304-63724-52548-02844

The BLOB handle is closed unconditionally. Even if this routine returns an error code, the handle is still closed. (source: c3ref/blob_close.html, checked-by: tcl/e_blobclose.test, matrix: context, detail)

R-37808-62273-24906-47503-60125-44409-00514-33279

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, matrix: context, detail)

R-37810-60222-47752-18821-24220-18386-52831-63855

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, matrix: context, detail)

R-37812-47407-44151-24694-62524-58711-37886-57014

Once an encoding has been set for a database, it cannot be changed. (source: pragma.html, checked-by: th3/req1/pragma16.test, matrix: context, detail)

R-37839-54301-54800-59276-61282-21878-13355-00369

Value is a big-endian 24-bit twos-complement integer. (source: fileformat2.html, checked-by: src/vdbeaux.c, th3/req1/fileformat02.test, matrix: context, detail)

R-37879-39987-64431-01486-31700-04419-20015-25987

sqlite> EXPLAIN QUERY PLAN SELECT a FROM t1 UNION SELECT c FROM t2; 1|0|0|SCAN TABLE t1 2|0|0|SCAN TABLE t2 0|0|0|COMPOUND SUBQUERIES 1 AND 2 USING TEMP B-TREE (UNION) (source: eqp.html, checked-by: tcl/eqp.test, matrix: context, detail)

R-37910-23168-39063-40634-50772-23998-34303-02455

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, matrix: context, detail)

R-37911-51642-34718-50738-49482-42498-05083-29076

The LIMIT clause is used to place an upper bound on the number of rows returned by the entire SELECT statement. (source: lang_select.html, checked-by: th3/req1/select02.test, matrix: context, detail)

R-37913-29727-14021-07473-32846-42864-03520-49980


(source: syntax/update-stmt-limited.html, matrix: context, detail)

R-37916-47407-25841-44869-57866-03917-48046-05809

The MATCH operator is a special syntax for the match() application-defined function. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-37997-42187-51725-59091-37072-50205-56712-26602

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, matrix: context, detail)

R-38001-03952-19465-11266-52684-12379-01508-27794

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, matrix: context, detail)

R-38023-18396-22713-13690-61527-29951-04231-55806

It is an error to use a "*" or "alias.*" expression in any context other than a result expression list. (source: lang_select.html, checked-by: tcl/e_select.test, matrix: context, detail)

R-38049-07913-57133-40179-27689-18844-57300-61225

If any other error occurs while processing an attached database, processing is abandoned and the error code is returned to the caller immediately. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, matrix: context, detail)

R-38049-49177-51808-41050-10295-13822-05309-22802

The anQueue field is an array of mxLevel+1 unsigned integers that tell the current number of elements in the priority queue at each level. (source: rtree.html, matrix: context, detail)

R-38061-31091-04513-48389-43218-44173-18039-63201

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, matrix: context, detail)

R-38062-30057-54968-60320-51568-47118-43997-50197

In partial indexes, only some subset of the rows in the table have corresponding index entries. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-38083-64261-20639-49699-39897-18481-13344-23243

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, matrix: context, detail)

R-38091-32352-01038-12567-23855-46288-57631-62410

The maximum parameter number is set at compile-time by the SQLITE_MAX_VARIABLE_NUMBER macro. (source: lang_expr.html, checked-by: src/main.c, matrix: context, detail)

R-38128-34102-03228-01716-42650-19152-18652-04810

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, checked-by: tcl/e_walauto.test, matrix: context, detail)

R-38176-56274-44779-06953-35503-33902-10868-27976

In a database with ptrmap pages, the first ptrmap page is page 2. (source: fileformat2.html, matrix: context, detail)

R-38200-45242-44126-59333-52626-62279-09263-45295

The sqlite3_load_extension() interface returns SQLITE_OK on success and SQLITE_ERROR if something goes wrong. (source: c3ref/load_extension.html, matrix: context, detail)

R-38207-48996-22949-56982-35182-46285-03543-37900

If zDb is not NULL (or a zero length string) and is not the name of any attached database, SQLITE_ERROR is returned to the caller. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, matrix: context, detail)

R-38219-53002-00313-45584-37253-57007-40981-19888

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, matrix: context, detail)

R-38229-40159-56776-58417-62683-03427-34499-02992

If the callback function to sqlite3_exec() returns non-zero, then sqlite3_exec() will return SQLITE_ABORT. (source: rescode.html, checked-by: src/legacy.c, th3/cov1/legacy01.test, matrix: context, detail)

R-38242-53217-63508-42050-45799-27349-00700-51305

"SEARCH" indicates that only a subset of the table rows are visited. (source: eqp.html, checked-by: th3/req1/eqp01.test, matrix: context, detail)

R-38255-01123-17984-58641-36613-29376-16056-55612

If the filename is ":memory:", then a private, temporary in-memory database is created for the connection. (source: c3ref/open.html, checked-by: th3/cov1/sharedcache03.test, matrix: context, detail)

R-38260-37719-07465-52549-18983-56456-60761-04524

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, matrix: context, detail)

R-38293-42495-20916-29854-03664-36898-47028-10197

Prior savepoints, even savepoints with matching savepoint-names, are unchanged. (source: lang_savepoint.html, matrix: context, detail)

R-38308-24406-60432-36844-44723-02085-25022-07693

SQLite attempts to use an index to satisfy the ORDER BY clause of a query when possible. (source: optoverview.html, matrix: context, detail)

R-38336-05023-13605-39367-03302-30111-01531-40111

Hence explicitly specifying FOR EACH ROW is optional. (source: lang_createtrigger.html, matrix: context, detail)

R-38341-46511-60647-36550-00452-63449-13223-34323

The subquery does not use aggregates or the outer query does not use LIMIT. (source: optoverview.html, matrix: context, detail)

R-38341-53143-20377-01008-01065-23997-09704-35751

The subquery does not use LIMIT or the outer query is not DISTINCT. (source: optoverview.html, matrix: context, detail)

R-38363-06047-50466-51951-52658-34860-15008-00434

The WHERE clause may not contain subqueries, references to other tables, functions, or bound parameters. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-38392-49970-12862-30349-17432-31139-60846-54763

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, matrix: context, detail)

R-38412-06710-13373-27041-27382-60302-02109-00077

If the name of the table is unique across all attached databases and the main and temp databases, then the schema-name prefix is not required. (source: lang_attach.html, checked-by: th3/req1/attach01.test, matrix: context, detail)

R-38422-04402-49671-03749-58225-12387-56102-01352

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, matrix: context, detail)

R-38462-47168-00802-29232-37957-12454-50485-62719

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, matrix: context, detail)

R-38465-03616-05704-04458-16230-08535-12299-37595

If there is an ON clause then the ON expression is evaluated for each row of the cartesian product as a boolean expression. Only rows for which the expression evaluates to true are included from the dataset. (source: lang_select.html, checked-by: tcl/e_select.test, tcl/e_select2.test, matrix: context, detail)

R-38470-19236-05585-14334-15897-63539-60552-16628

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, matrix: context, detail)

R-38485-20010-44949-34877-39366-11397-10597-42284

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, matrix: context, detail)

R-38513-43475-55678-22086-42456-40584-55564-45510

A call to xRelease(X,M) invalidates all savepoints where N>=M. (source: vtab.html, matrix: context, detail)

R-38515-45264-03335-50980-08297-28344-12265-07348

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, matrix: context, detail)

R-38536-04510-23157-49681-06132-47285-44686-09674

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, matrix: context, detail)

R-38545-41243-15928-60739-42424-40199-61520-19344

If SQLite determines that invoking the busy handler could result in a deadlock, it will go ahead and return SQLITE_BUSY to the application instead of invoking the busy handler. (source: c3ref/busy_handler.html, checked-by: th3/req1/busy01.test, matrix: context, detail)

R-38577-07276-49824-55947-21917-12317-50155-56118

If the query string is present, then all query parameters are passed through into the xOpen method of the underlying VFS. (source: uri.html, matrix: context, detail)

R-38578-34175-46775-59738-25546-18239-05883-23898

If an SQLITE_BUSY error is encountered when processing one or more of the attached WAL databases, the operation is still attempted on any remaining attached databases and SQLITE_BUSY is returned at the end. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, matrix: context, detail)

R-38590-62769-37174-11350-15307-56847-39156-23447

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, matrix: context, detail)

R-38595-30726-57286-21229-43510-46199-10154-57516

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, matrix: context, detail)

R-38620-19499-44951-35069-39820-53253-57753-11041

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, matrix: context, detail)

R-38644-64912-46499-33348-47960-41753-16072-56504

If the right-most element of a compound SELECT is a VALUES clause, then no ORDER BY clause is allowed on that statement. (source: lang_select.html, checked-by: th3/req1/select02.test, matrix: context, detail)

R-38650-02327-39862-58764-51816-33051-52085-34596

The immutable query parameter is a boolean that signals to SQLite that the underlying database file is held on read-only media and cannot be modified, even by another process with elevated privileges. (source: uri.html, matrix: context, detail)

R-38720-18127-00182-16789-56682-25353-36594-39383

The default setting is determined by the SQLITE_ALLOW_COVERING_INDEX_SCAN compile-time option, or is "on" if that compile-time option is omitted. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/global.c, matrix: context, detail)

R-38731-06596-31810-47089-31718-16313-64789-42383

The "utc" modifier 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, matrix: context, detail)

R-38735-12540-01712-42619-26101-33703-41022-22731

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, matrix: context, detail)

R-38759-38789-04186-61984-59919-00444-32947-07826

Operators IS and IS NOT have the same precedence as =. (source: lang_expr.html, checked-by: tcl/e_expr.test, matrix: context, detail)

R-38787-59790-48915-64090-33059-22783-12299-30230

If the SQLITE_FCNTL_PRAGMA file control returns SQLITE_NOTFOUND, then normal PRAGMA processing continues. (source: c3ref/c_fcntl_busyhandler.html, checked-by: th3/cov1/pragma24.test, matrix: context, detail)

R-38799-08373-51877-49685-25873-19436-11233-20221

URI filenames can be enabled or disabled using the SQLITE_USE_URI=1 or SQLITE_USE_URI=0 compile-time options. (source: uri.html, checked-by: src/global.c, matrix: context, detail)

R-38815-48046-28937-36081-10893-02265-15426-25349

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 first 24 bytes of the WAL header and the first 8 bytes and the content of all frames up to and including the current frame. (source: fileformat2.html, matrix: context, detail)

R-38828-57497-43339-57489-42530-28213-54283-40875

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, matrix: context, detail)

R-38841-33525-61370-32823-20999-44685-25709-53990

Application code is allowed to modify the sqlite_sequence table, to add new rows, to delete rows, or to modify existing rows. (source: fileformat2.html, matrix: context, detail)

R-38914-26427-29082-17331-29986-21952-39833-10934

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, matrix: context, detail)

R-38971-13593-63134-41706-45438-37598-45923-53388

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, matrix: context, detail)

R-38973-52184-38987-24216-42448-05561-19819-59369

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, matrix: context, detail)

R-38980-08445-54197-34551-31600-64664-60502-04654

NOCASE does not implement a general purpose unicode caseless comparison. (source: fileformat2.html, matrix: context, detail)

R-38989-21359-13709-49366-18905-24783-41677-06526

The szExtra parameter will a number less than 250. (source: c3ref/pcache_methods2.html, matrix: context, detail)

R-39009-25596-33829-41361-38484-11658-48369-57903

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, matrix: context, detail)

R-39020-65330-19381-32057-25425-01859-32299-49676

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, matrix: context, detail)

R-39051-42271-46025-06225-43154-22193-07696-21282

The second form attempts to modify the maximum page count. (source: pragma.html, checked-by: th3/req1/pragma12.test, matrix: context, detail)

R-39070-64522-51812-62435-11898-58079-59310-06231

The sqlite3_db_cacheflush(D) interface flushes caches for all schemas - "main", "temp", and any attached databases. (source: c3ref/db_cacheflush.html, matrix: context, detail)

R-39073-45389-04336-35554-15796-29115-57398-44032

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, matrix: context, detail)

R-39082-45490-57705-20308-15536-26647-22917-12593

The query above will use the po_parent index to help find the answer, since the po_parent index contains entries for all rows of interest. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-39086-42574-52066-34566-03603-26293-15630-13712

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, matrix: context, detail)

R-39088-19376-30403-42071-52241-63734-59003-40185

The sqlite3_value object returned by sqlite3_column_value() is unprotected. (source: c3ref/value.html, checked-by: th3/req1/value01.test, matrix: context, detail)

R-39089-10219-02970-26628-53332-63736-48500-08755

The s1 value spans all 32-bit integer terms of the sequence whereas s0 omits the final term. (source: fileformat2.html, matrix: context, detail)

R-39100-27317-10483-05917-57976-22690-13501-50723

The SQLITE_CONFIG_PCACHE_HDRSZ option takes a single parameter which is a pointer to an integer and writes into that integer the number of extra bytes per page required for each page in SQLITE_CONFIG_PAGECACHE. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, th3/cov1/main42.test, matrix: context, detail)

R-39150-60222-54489-42043-19266-00482-07233-17932

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/th3pcache.c, matrix: context, detail)

R-39210-36906-47474-04238-18863-57364-16133-33806

"b=6" will match to "6=b" as long as "b=6" is on the index and "6=b" is in the query. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-39221-43493-49031-48260-11050-48204-23096-55403

The sqlite3_mutex_leave() routine exits a mutex that was previously entered by the same thread. (source: c3ref/mutex_alloc.html, matrix: context, detail)

R-39231-33076-05727-00102-39639-63072-44132-27548

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, matrix: context, detail)

R-39254-55835-64728-03186-59811-05640-07786-15038

Each entry in the index b-tree corresponds to a single row in the associated SQL table. (source: fileformat2.html, matrix: context, detail)

R-39265-04070-30004-05781-22531-14920-64985-48690

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, matrix: context, detail)

R-39279-48828-00404-43812-37996-18739-13104-15317

The order of values in the record is the same as the order of columns in the SQL table definition. (source: fileformat2.html, matrix: context, detail)

R-39332-27982-27049-48904-10655-02053-00990-04758

The subquery does not use LIMIT or the outer query does not use aggregates. (source: optoverview.html, matrix: context, detail)

R-39350-14264-06804-50075-43758-39518-52551-62265

These routines open an SQLite database file as specified by the filename argument. (source: c3ref/open.html, matrix: context, detail)

R-39368-64333-53302-20010-22332-46980-48834-46750

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, matrix: context, detail)

R-39393-06403-29630-61787-18303-10920-06068-01752


(source: syntax/factored-select-stmt.html, matrix: context, detail)

R-39412-46882-37101-45160-49245-06434-49198-35151

An application-defined function is permitted to call other SQLite interfaces. (source: c3ref/create_function.html, checked-by: th3/req1/createfunc06.test, matrix: context, detail)

R-39414-35489-25303-10592-22636-36530-45454-18784

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, matrix: context, detail)

R-39448-56079-43024-42660-00434-04264-13777-54050

The filename argument sqlite3_open16() is converted from UTF16 native byte order into UTF8 prior to processing. (source: uri.html, matrix: context, detail)

R-39464-12723-18801-15682-15503-09131-15880-06935

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, matrix: context, detail)

R-39464-36566-10218-24417-22703-07867-12954-27805

The first time the database is written, an exclusive lock is obtained and held. (source: pragma.html, checked-by: th3/req1/pragma04.test, matrix: context, detail)

R-39474-38888-56362-54378-59272-28720-13606-34425

The sixth parameter to the preupdate callback is the initial rowid of the row being changes for SQLITE_UPDATE and SQLITE_DELETE changes and is undefined for SQLITE_INSERT changes. (source: c3ref/preupdate_count.html, matrix: context, detail)

R-39544-28997-13653-57291-53593-51283-21786-51117

In other words, the first column is 0 if the equivalent call to sqlite3_wal_checkpoint_v2() would have returned SQLITE_OK or 1 if the equivalent call would have returned SQLITE_BUSY. (source: pragma.html, matrix: context, detail)

R-39556-50570-30565-00761-35102-37425-01790-22325

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, matrix: context, detail)

R-39564-36305-13838-22783-16141-24782-64457-11535

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, matrix: context, detail)

R-39578-54133-12312-25444-39025-43860-65200-11026

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_busyhandler.html, matrix: context, detail)

R-39608-49000-51968-24842-19070-08094-34539-25072

This pragma sets or queries the database connection locking-mode. (source: pragma.html, checked-by: th3/req1/pragma04.test, matrix: context, detail)

R-39614-35715-21681-03013-09842-54185-10366-26621

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, matrix: context, detail)

R-39616-20555-02533-15918-45822-50476-08959-13235

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, matrix: context, detail)

R-39618-23133-00956-24239-08311-25501-36268-36512

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, matrix: context, detail)

R-39625-59133-51160-16821-08966-29861-61919-63168

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, matrix: context, detail)

R-39692-12488-54491-44352-04912-13609-39585-46004

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, matrix: context, detail)

R-39719-17021-25795-58953-42832-28593-26146-38577

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, matrix: context, detail)

R-39746-16618-18331-39876-26719-11435-38479-45574

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, matrix: context, detail)

R-39763-46240-25727-03918-12212-03992-13820-06726

PRAGMA schema.journal_mode; PRAGMA schema.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, matrix: context, detail)

R-39822-07822-55219-05739-15484-26699-12744-24448

In this case the new table is created in the named database. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-39822-14939-20605-05288-51207-58465-58259-08970

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, matrix: context, detail)

R-39910-14723-21123-44064-38823-12161-58690-10248

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, matrix: context, detail)

R-39992-63473-63522-38384-26605-22520-32296-40971

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 -- SQLite.org headquarters -80.7749, -80.7747, -- Longitude range 35.3776, 35.3778 -- Latitude range ); INSERT INTO demo_index VALUES( 2, -- NC 12th Congressional District in 2010 -81.0, -79.6, 35.0, 36.2 ); (source: rtree.html, matrix: context, detail)

R-40025-59984-53912-08799-37788-65154-58103-39921

Expressions in an index may only refer to columns in the table that is being indexed. (source: lang_createindex.html, matrix: context, detail)

R-40026-10531-12029-61961-20483-43769-01249-19476

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, matrix: context, detail)

R-40045-04159-18257-36948-62852-01097-02415-08499

SQLite ensures that *pzErrMsg is NULL before calling the xEntryPoint(). (source: c3ref/auto_extension.html, checked-by: th3/req1/autoext01.test, matrix: context, detail)

R-40079-54503-52433-22063-65278-03713-13772-01502

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, matrix: context, detail)

R-40086-60101-35729-43768-42445-10732-59805-35730

If the FORMAT argument is missing or NULL then the result is NULL. (source: lang_corefunc.html, checked-by: tcl/printf2.test, th3/cov1/printf08.test, matrix: context, detail)

R-40123-37571-51972-63569-14797-25863-34192-34067

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, checked-by: th3/req1/pragma30.test, matrix: context, detail)

R-40134-30296-44811-22193-40834-03348-00642-51152

Table zTable is a WITHOUT ROWID table (source: c3ref/blob_open.html, checked-by: tcl/e_blobopen.test, tcl/without_rowid5.test, th3/cov1/vdbeblob01.test, matrix: context, detail)

R-40137-26050-25715-27051-43009-42599-25608-04347

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, matrix: context, detail)

R-40197-14811-29578-36290-28063-57666-21739-57478

The dropped table is completely removed from the database schema and the disk file. (source: lang_droptable.html, checked-by: th3/req1/droptable01.test, matrix: context, detail)

R-40212-32858-03884-52961-15925-53384-61113-63305

Therefore, auto-vacuuming must be turned on before any tables are created. (source: pragma.html, checked-by: th3/req1/pragma07.test, matrix: context, detail)

R-40228-05483-58480-12139-54798-33124-01021-28688

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, matrix: context, detail)

R-40233-33496-43567-58551-03815-59938-27256-59385

The nolock query parameter is a boolean that disables all calls to the xLock, xUnlock, and xCheckReservedLock methods of the VFS when true. (source: uri.html, matrix: context, detail)

R-40235-17052-28075-57665-18059-48204-40601-49682

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, matrix: context, detail)

R-40244-56906-37355-29196-11093-05053-42353-15016

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, matrix: context, detail)

R-40248-50202-39876-24554-56269-52121-36535-08663

The sqlite3_cancel_auto_extension(X) routine returns 1 if initialization routine X was successfully unregistered and it returns 0 if X was not on the list of initialization routines. (source: c3ref/cancel_auto_extension.html, matrix: context, detail)

R-40260-16838-48833-50335-31686-26847-17814-00082

The number of coordinates is 2 for a 1-dimensional R*Tree, 4 for a 2-dimensional R*Tree, 6 for a 3-dimensional R*Tree, and so forth. (source: rtree.html, matrix: context, detail)

R-40262-17429-01805-13331-04293-59760-57199-24913


(source: syntax/drop-table-stmt.html, checked-by: th3/req1/droptable01.test, matrix: context, detail)

R-40275-54363-02570-13891-25879-32462-51713-20144

If no COLLATE clause is specified, the default collation sequence is BINARY. (source: lang_createtable.html, checked-by: tcl/e_createtable.test, matrix: context, detail)

R-40297-14464-07991-25596-41588-39255-21146-34618

The INDEXED BY phrase forces the SQLite query planner to use a particular named index on a DELETE, SELECT, or UPDATE statement. (source: lang_indexedby.html, checked-by: tcl/indexedby.test, matrix: context, detail)

R-40298-31327-08313-07924-25737-24102-08430-39905

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, th3/cov1/where03b.test, matrix: context, detail)

R-40318-26723-38949-62709-27455-61275-20452-62962

BLOB values (even serial types 12 and larger) sort last and in the order determined by memcmp(). (source: fileformat2.html, checked-by: th3/req1/fileformat05.test, matrix: context, detail)

R-40355-56314-02785-21892-27630-10277-00128-03405

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, matrix: context, detail)

R-40361-64162-53893-43519-22401-31532-23705-29102

Autocommit mode is on by default. (source: c3ref/get_autocommit.html, matrix: context, detail)

R-40373-33294-50231-39382-53294-24447-44855-24711

SQLite makes a copy of the sqlite3_pcache_methods2 object. (source: c3ref/c_config_covering_index_scan.html, checked-by: th3/th3pcache.c, matrix: context, detail)

R-40383-06816-10485-50532-53566-05766-27128-48276

The sqlite3_compileoption_used() function returns 0 or 1 indicating whether the specified option was defined at compile time. (source: c3ref/compileoption_get.html, matrix: context, detail)

R-40390-09039-54106-21086-56168-24022-18205-41129

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, matrix: context, detail)

R-40416-50415-37533-65510-36358-17565-47393-05373

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/th3testvfs.c, matrix: context, detail)

R-40460-39888-52540-38305-24333-10191-58577-29064

A call to sqlite3_snapshot_open(D,S,P) will fail if the database connection D does not know that the database file for schema S is in WAL mode. A database connection might not know that the database file is in WAL mode if there has been no prior I/O on that database connection, or if the database entered WAL mode after the most recent I/O on the database connection. (source: c3ref/snapshot_open.html, matrix: context, detail)

R-40463-24712-34752-07038-54630-26227-29776-31431

SQLITE_DBSTATUS_CACHE_MISS This parameter returns the number of pager cache misses that have occurred. (source: c3ref/c_dbstatus_options.html, matrix: context, detail)

R-40472-60438-03331-36186-60982-36973-59940-12981

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, matrix: context, detail)

R-40482-20265-47732-31040-18704-35090-36000-12311

The third column is the name of the table that is referred to. (source: pragma.html, checked-by: tcl/fkey5.test, th3/cov1/fkey23.test, matrix: context, detail)

R-40502-12262-42819-60807-51435-51687-55446-47633

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, matrix: context, detail)

R-40541-16535-13486-20808-32771-40014-56894-53399

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, matrix: context, detail)

R-40541-54897-33607-37262-17474-57290-09312-25628

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, matrix: context, detail)

R-40564-64233-62609-55740-51668-02472-22352-36166

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, matrix: context, detail)

R-40597-22164-08785-17254-28069-60974-16591-44156

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, matrix: context, detail)

R-40598-36595-56877-54174-64761-50948-11892-46483

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, matrix: context, detail)

R-40602-24566-60725-06279-09295-25327-26293-64572

The schema-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, matrix: context, detail)

R-40630-02268-40288-03121-46855-38283-56768-00095

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, matrix: context, detail)

R-40676-08516-16968-48123-39083-47673-52246-45004

Inserts into WITHOUT ROWID tables are not recorded. (source: c3ref/last_insert_rowid.html, checked-by: th3/cov1/withoutrowid01.test, matrix: context, detail)

R-40682-45237-21409-00125-10329-07254-01818-58163

As with the LIKE operator, the sqlite3_strlike(P,X,E) function is case insensitive - equivalent upper and lower case ASCII characters match one another. (source: c3ref/strlike.html, matrix: context, detail)

R-40729-56447-32753-40044-54162-25797-56212-55799

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, matrix: context, detail)

R-40745-32628-44360-54833-19873-28133-21062-02308

However xMutexAlloc() may use SQLite memory allocation for a fast or recursive mutex. (source: c3ref/mutex_methods.html, matrix: context, detail)

R-40779-12285-51949-10144-43789-15381-05710-53892

The first column is usually 0 but will be 1 if a RESTART or FULL or TRUNCATE checkpoint was blocked from completing, for example because another thread or process was actively using the database. (source: pragma.html, checked-by: th3/req1/pragma29.test, matrix: context, detail)

R-40798-35269-51954-12592-52405-01125-52034-02657

Warning: misuse of this pragma can easily result in a corrupt database file. (source: pragma.html, checked-by: th3/req1/pragma30.test, matrix: context, detail)

R-40812-03570-58737-26450-04451-50021-12578-43661

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, matrix: context, detail)

R-40822-33276-58156-53336-07099-39057-58220-02470

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, matrix: context, detail)

R-40827-27357-46487-27198-26867-15174-62736-47681

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, matrix: context, detail)

R-40858-03003-08666-12472-31051-52566-61637-28947

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, matrix: context, detail)

R-40874-07817-64808-61349-14164-22324-19538-25900

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, matrix: context, detail)

R-40889-06838-65299-31381-40601-55617-17573-42107

The rank of the column within the table being indexed, or -1 if the index-column is the rowid of the table being indexed. (source: pragma.html, checked-by: tcl/pragma.test, th3/req1/pragma15x.test, matrix: context, detail)

R-40912-17796-52858-33167-65116-31464-10604-52940

Only an effective call of sqlite3_initialize() does any initialization. All other calls are harmless no-ops. (source: c3ref/initialize.html, matrix: context, detail)

R-40921-47946-20610-64910-18137-09746-01061-06361

Another limitation of the histogram data is that it only applies to the left-most column on an index. (source: optoverview.html, matrix: context, detail)

R-40949-19585-05483-44375-20599-28045-28956-60873

The fifth byte through the last usable byte are used to hold overflow content. (source: fileformat2.html, matrix: context, detail)

R-40949-22892-24068-33862-21333-32882-13770-09171

The third integer is the number number of rows in the index that have the same value for the first two columns. (source: fileformat2.html, matrix: context, detail)

R-41004-58299-09133-05321-11963-32065-55865-10893

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, matrix: context, detail)

R-41025-56247-28274-26451-36451-44569-58431-11817

Otherwise, the affinity is NUMERIC. (source: datatype3.html, checked-by: th3/req1/datatype3_01.test, matrix: context, detail)

R-41040-47502-07753-07518-58818-60449-29305-32446

Autocheckpointing is enabled by default with an interval of 1000 or SQLITE_DEFAULT_WAL_AUTOCHECKPOINT. (source: pragma.html, matrix: context, detail)

R-41050-23052-29095-23436-46083-00331-23025-31647

The first (query) form will return the synchronous setting as an integer. (source: pragma.html, matrix: context, detail)

R-41051-26626-32657-27004-34667-60114-13297-41837

In more recent versions of SQLite, the ROLLBACK will proceed and pending statements will often be aborted, causing them to return an SQLITE_ABORT or SQLITE_ABORT_ROLLBACK error. (source: lang_transaction.html, matrix: context, detail)

R-41062-34431-24503-40012-23472-27163-07838-01416

Parent and child keys must have the same cardinality. (source: foreignkeys.html, checked-by: tcl/e_fkey.test, th3/req1/foreignkeys11.test, matrix: context, detail)

R-41084-34154-63240-28111-44553-49463-37174-17774

The dbstat virtual table is available on all database connections when SQLite is built using the SQLITE_ENABLE_DBSTAT_VTAB compile-time option. (source: dbstat.html, matrix: context, detail)

R-41103-34171-63381-59793-03319-04831-02307-39561

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, matrix: context, detail)

R-41108-63135-59113-45543-59580-27259-39094-46915

The subquery does not use LIMIT or the outer query does not have a WHERE clause. (source: optoverview.html, matrix: context, detail)

R-41122-46973-40742-21767-11414-32017-24227-01412

The subquery is not a recursive CTE. (source: optoverview.html, matrix: context, detail)

R-41132-04368-54784-12197-53730-05205-63815-61247

Comments do not nest. (source: lang_comment.html, checked-by: th3/req1/comment01.test, matrix: context, detail)

R-41134-27890-19387-23998-27179-40954-57167-14106

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, matrix: context, detail)

R-41155-30776-45495-01405-38282-55666-24776-00512

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, matrix: context, detail)

R-41161-50390-16822-36301-43678-58977-40657-30512

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, matrix: context, detail)

R-41163-31141-41973-37775-18210-20451-39077-27354

The default transaction behavior is deferred. (source: lang_transaction.html, matrix: context, detail)

R-41183-50724-01751-26515-20432-60241-55721-62765

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, matrix: context, detail)

R-41220-51800-40113-04594-39111-44246-00162-60024

This option sets the threading mode to Serialized. (source: c3ref/c_config_covering_index_scan.html, checked-by: src/main.c, matrix: context, detail)

R-41246-06467-15697-52258-02048-61500-49466-56999

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, matrix: context, detail)

R-41299-52117-33031-60403-48286-21515-32111-27387

If no error (SQLITE_BUSY or otherwise) is encountered while processing the attached databases, SQLITE_OK is returned. (source: c3ref/wal_checkpoint_v2.html, checked-by: tcl/e_walckpt.test, matrix: context, detail)

R-41361-32452-08540-06268-11369-38463-57924-37597

The "pk" column in the result set is zero for columns that are not part of the primary key, and is the index of the column in the primary key for columns that are part of the primary key. (source: pragma.html, matrix: context, detail)

R-41381-35999-48332-52888-17487-39096-22671-62741

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, matrix: context, detail)

R-41411-18837-33884-40601-61407-45364-54319-00196

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, matrix: context, detail)

R-41417-64456-42642-02544-40631-11378-24048-47614

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, matrix: context, detail)

R-41435-15049-20553-57196-01541-07225-45251-60631

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, matrix: context, detail)

R-41438-41245-47933-47570-18885-03208-62677-50789

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, matrix: context, detail)

R-41444-49665-13532-29136-56203-03908-49213-31629

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, matrix: context, detail)

R-41470-32236-05158-07794-46704-63040-13347-49238

The aConstraint[] array only reports WHERE clause terms that are relevant to the particular virtual table being queried. (source: c3ref/index_info.html, matrix: context, detail)

R-41499-47058-04189-19670-59283-14956-02456-13763

The leftmost column is number 0. (source: c3ref/column_name.html, matrix: context, detail)

R-41519-43313-49943-13325-32316-49786-47625-55988

If N is out of range, sqlite3_compileoption_get() returns a NULL pointer. (source: c3ref/compileoption_get.html, matrix: context, detail)

R-41531-51083-45051-37425-19674-01432-09098-10672

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, checked-by: tcl/e_walauto.test, matrix: context, detail)

R-41554-07046-26036-24381-44399-09525-65119-51842

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, matrix: context, detail)

R-41613-20553-43985-38699-33284-42636-36954-15318

The sqlite3_wal_checkpoint(D,X) is equivalent to sqlite3_wal_checkpoint_v2(D,X,SQLITE_CHECKPOINT_PASSIVE,0,0). (source: c3ref/wal_checkpoint.html, checked-by: src/main.c, tcl/e_walckpt.test, th3/req1/checkpoint01.test, matrix: context, detail)

R-41640-10889-37891-53855-47925-09375-30702-30304

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, matrix: context, detail)

R-41650-20872-58221-16141-48271-22021-38019-62849

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, matrix: context, detail)

R-41671-45444-43968-05404-57044-18687-11501-21021

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, matrix: context, detail)

R-41709-11359-63668-44709-26300-11660-01495-57429

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, matrix: context, detail)

R-41719-33203-52232-61281-45744-11728-08852-57887

The sqlite_stat4.nLt column holds a list of N integers where the K-th integer is the approximate number of entries in the index whose K left-most columns are collectively less than the K left-most columns of the sample. (source: fileformat2.html, matrix: context, detail)

R-41719-58677-16610-62099-11420-34570-29798-59249

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, matrix: context, detail)

R-41778-26203-39333-15071-00697-32758-59991-57440

SQLITE_LIMIT_ATTACHED The maximum number of attached databases. (source: c3ref/c_limit_attached.html, checked-by: tcl/sqllimits1.test, th3/req1/limit02.test, matrix: context, detail)

R-41784-13339-39195-36557-35011-50589-62735-17221

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, matrix: context, detail)

R-41795-40039-43827-16838-58364-41518-15809-62342

These three ways of committing a transaction correspond to the DELETE, TRUNCATE, and PERSIST settings, respectively, of the journal_mode pragma. (source: fileformat2.html, matrix: context, detail)

R-41796-02552-46731-27208-23017-23175-41935-19333

The columns referenced in the WHERE clause of a partial index can be any of the columns in the table, not just columns that happen to be indexed. (source: partialindex.html, checked-by: th3/cov1/index01.test, matrix: context, detail)

R-41837-07814-38752-23130-22847-42887-22849-22070

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, matrix: context, detail)

R-41898-06686-16828-22027-00966-49217-22358-47285

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, matrix: context, detail)

R-41898-15939-51576-48964-07633-48670-39877-19524

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, matrix: context, detail)

R-41914-07968-11618-38374-65120-62637-18868-18201

Pragma integrity_check will return at most N errors before the analysis quits, with N defaulting to 100. (source: pragma.html, checked-by: th3/req1/integrityck01.test, matrix: context, detail)

</