SQLite understands most of the standard SQL language. But it does omit some features while at the same time adding a few features of its own. This document attempts to describe precisely what parts of the SQL language SQLite does and does not support. A list of keywords is also provided. The SQL language syntax is described by syntax diagrams.
In all of the syntax diagrams that follow, literal text is shown in bold blue. Non-terminal symbols are shown in italic red. Operators that are part of the syntactic markup itself are shown in black roman.
This document is just an overview of the SQL syntax implemented by SQLite. Many low-level productions are omitted. For detailed information on the language that SQLite understands, refer to the source code and the grammar file "parse.y".
The following syntax documentation topics are available:
The methods Prepare(), and Execute() accept an SQL statement list (sql-stmt-list) which is a semicolon-separated list of statements.
Each SQL statement in the statement list is an instance of the following: