Syntax Diagrams For SQLite
sql-stmt-list:

References: sql-stmt
See also: sqlite3_lang.htm
sql-stmt:

Used by: sql-stmt-list
References: alter-table-stmt analyze-stmt attach-stmt begin-stmt commit-stmt create-index-stmt create-table-stmt create-trigger-stmt create-view-stmt create-virtual-table-stmt delete-stmt delete-stmt-limited detach-stmt drop-index-stmt drop-table-stmt drop-trigger-stmt drop-view-stmt insert-stmt pragma-stmt reindex-stmt release-stmt rollback-stmt savepoint-stmt select-stmt update-stmt update-stmt-limited vacuum-stmt
See also: sqlite3_lang.htm sqlite3_lang_explain.htm
alter-table-stmt:

Used by: sql-stmt
References: column-def
See also: sqlite3_lang_altertable.htm
analyze-stmt:

Used by: sql-stmt
See also: sqlite3_lang_analyze.htm
attach-stmt:

Used by: sql-stmt
References: expr
See also: sqlite3_lang_attach.htm
begin-stmt:

Used by: sql-stmt
See also: sqlite3_lang_transaction.htm
commit-stmt:

Used by: sql-stmt
See also: sqlite3_lang_transaction.htm
rollback-stmt:

Used by: sql-stmt
See also: sqlite3_lang_savepoint.htm sqlite3_lang_transaction.htm
savepoint-stmt:

Used by: sql-stmt
See also: sqlite3_lang_savepoint.htm
release-stmt:

Used by: sql-stmt
See also: sqlite3_lang_savepoint.htm
create-index-stmt:

Used by: sql-stmt
References: expr indexed-column
See also: sqlite3_lang_createindex.htm sqlite3_lang_partialindex.htm
indexed-column:

Used by: create-index-stmt table-constraint
References: expr
See also: sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtable.htm#primkeyconst sqlite3_lang_createtable.htm#uniqueconst sqlite3_lang_partialindex.htm
create-table-stmt:

Used by: sql-stmt
References: column-def select-stmt table-constraint
See also: sqlite3_lang_createtable.htm
column-def:

Used by: alter-table-stmt create-table-stmt
References: column-constraint type-name
See also: sqlite3_lang_altertable.htm sqlite3_lang_createtable.htm sqlite3_lang_createtable.htm#tablecoldef
type-name:

Used by: column-def expr
References: signed-number
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
column-constraint:

Used by: column-def
References: conflict-clause expr foreign-key-clause literal-value signed-number
See also: sqlite3_lang_altertable.htm sqlite3_lang_createtable.htm sqlite3_lang_createtable.htm#tablecoldef
signed-number:

Used by: column-constraint pragma-value type-name
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm sqlite3_lang_pragma.htm#syntax
table-constraint:

Used by: create-table-stmt
References: conflict-clause expr foreign-key-clause indexed-column
See also: sqlite3_lang_createtable.htm sqlite3_lang_createtable.htm#primkeyconst sqlite3_lang_createtable.htm#tablecoldef sqlite3_lang_createtable.htm#uniqueconst
foreign-key-clause:

Used by: column-constraint table-constraint
See also: sqlite3_lang_altertable.htm sqlite3_lang_createtable.htm
conflict-clause:

Used by: column-constraint table-constraint
See also: sqlite3_lang_altertable.htm sqlite3_lang_conflict.htm sqlite3_lang_createtable.htm sqlite3_lang_createtable.htm#notnullconst
create-trigger-stmt:

Used by: sql-stmt
References: delete-stmt expr insert-stmt select-stmt update-stmt
See also: sqlite3_lang_createtrigger.htm
create-view-stmt:

Used by: sql-stmt
References: select-stmt
See also: sqlite3_lang_createview.htm
create-virtual-table-stmt:

Used by: sql-stmt
See also: sqlite3_lang_createvtab.htm
with-clause:

Used by: delete-stmt delete-stmt-limited insert-stmt update-stmt update-stmt-limited
References: cte-table-name select-stmt
See also: sqlite3_lang_createtrigger.htm sqlite3_lang_delete.htm sqlite3_lang_insert.htm sqlite3_lang_update.htm sqlite3_lang_with.htm
cte-table-name:

Used by: recursive-cte with-clause
See also: sqlite3_lang_createtrigger.htm sqlite3_lang_delete.htm sqlite3_lang_insert.htm sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_with.htm#recursivecte
recursive-cte:

References: cte-table-name
See also: sqlite3_lang_with.htm#recursivecte
common-table-expression:

Used by: compound-select-stmt factored-select-stmt select-stmt simple-select-stmt
References: select-stmt
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
delete-stmt:

Used by: create-trigger-stmt sql-stmt
References: expr qualified-table-name with-clause
See also: sqlite3_lang_createtrigger.htm sqlite3_lang_delete.htm
delete-stmt-limited:

Used by: sql-stmt
References: expr ordering-term qualified-table-name with-clause
See also: sqlite3_lang_delete.htm
detach-stmt:

Used by: sql-stmt
See also: sqlite3_lang_detach.htm
drop-index-stmt:

Used by: sql-stmt
See also: sqlite3_lang_dropindex.htm
drop-table-stmt:

Used by: sql-stmt
See also: sqlite3_lang_droptable.htm
drop-trigger-stmt:

Used by: sql-stmt
See also: sqlite3_lang_droptrigger.htm
drop-view-stmt:

Used by: sql-stmt
See also: sqlite3_lang_dropview.htm
expr:

Used by: attach-stmt column-constraint compound-select-stmt create-index-stmt create-trigger-stmt delete-stmt delete-stmt-limited factored-select-stmt indexed-column insert-stmt join-constraint ordering-term result-column select-core select-stmt simple-select-stmt table-constraint table-or-subquery update-stmt update-stmt-limited
References: literal-value raise-function select-stmt type-name
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
raise-function:

Used by: expr
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createtrigger.htm#raise sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
literal-value:

Used by: column-constraint expr
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
numeric-literal:

See also: sqlite3_lang_expr.htm#litvalue
insert-stmt:

Used by: create-trigger-stmt sql-stmt
References: expr select-stmt with-clause
See also: sqlite3_lang_createtrigger.htm sqlite3_lang_insert.htm
pragma-stmt:

Used by: sql-stmt
References: pragma-value
See also: sqlite3_lang_pragma.htm#syntax
pragma-value:

Used by: pragma-stmt
References: signed-number
See also: sqlite3_lang_pragma.htm#syntax
reindex-stmt:

Used by: sql-stmt
See also: sqlite3_lang_reindex.htm
select-stmt:

Used by: common-table-expression create-table-stmt create-trigger-stmt create-view-stmt expr insert-stmt sql-stmt table-or-subquery with-clause
References: common-table-expression compound-operator expr join-clause ordering-term result-column table-or-subquery
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_with.htm#recursivecte sqlite3_lang_partialindex.htm
join-clause:

Used by: select-core select-stmt table-or-subquery
References: join-constraint join-operator table-or-subquery
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
select-core:

Used by: compound-select-stmt factored-select-stmt simple-select-stmt
References: expr join-clause result-column table-or-subquery
See also: sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect
factored-select-stmt:

References: common-table-expression compound-operator expr ordering-term select-core
See also: sqlite3_lang_select.htm
simple-select-stmt:

References: common-table-expression expr ordering-term select-core
See also: sqlite3_lang_select.htm#simpleselect
compound-select-stmt:

References: common-table-expression expr ordering-term select-core
See also: sqlite3_lang_select.htm#compound
table-or-subquery:

Used by: join-clause select-core select-stmt
References: expr join-clause select-stmt
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
result-column:

Used by: select-core select-stmt
References: expr
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
join-operator:

Used by: join-clause
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#fromclause sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
join-constraint:

Used by: join-clause
References: expr
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#fromclause sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
ordering-term:

Used by: compound-select-stmt delete-stmt-limited factored-select-stmt select-stmt simple-select-stmt update-stmt-limited
References: expr
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_partialindex.htm
compound-operator:

Used by: factored-select-stmt select-stmt
See also: sqlite3_lang_altertable.htm sqlite3_lang_attach.htm sqlite3_lang_createindex.htm sqlite3_lang_createtable.htm sqlite3_lang_createtrigger.htm sqlite3_lang_createview.htm sqlite3_lang_delete.htm sqlite3_lang_expr.htm sqlite3_lang_insert.htm sqlite3_lang_select.htm sqlite3_lang_select.htm#compound sqlite3_lang_select.htm#simpleselect sqlite3_lang_update.htm sqlite3_lang_with.htm sqlite3_lang_with.htm#recursivecte sqlite3_lang_partialindex.htm
update-stmt:

Used by: create-trigger-stmt sql-stmt
References: column-name-list expr qualified-table-name with-clause
See also: sqlite3_lang_createtrigger.htm sqlite3_lang_update.htm
column-name-list:

Used by: update-stmt update-stmt-limited
See also: sqlite3_lang_createtrigger.htm sqlite3_lang_update.htm
update-stmt-limited:

Used by: sql-stmt
References: column-name-list expr ordering-term qualified-table-name with-clause
See also: sqlite3_lang_update.htm
qualified-table-name:

Used by: delete-stmt delete-stmt-limited update-stmt update-stmt-limited
See also: sqlite3_lang_createtrigger.htm sqlite3_lang_delete.htm sqlite3_lang_indexedby.htm sqlite3_lang_update.htm
vacuum-stmt:

Used by: sql-stmt
See also: sqlite3_lang_vacuum.htm
comment-syntax:

See also: sqlite3_lang_comment.htm