Syntax Diagrams For SQLite
aggregate-function-invocation:
alter-table-stmt:
analyze-stmt:
attach-stmt:
begin-stmt:
column-constraint:
References: conflict-clause expr foreign-key-clause literal-value signed-number
See also: gencol.html lang_altertable.html lang_createtable.html lang_createtable.html#tablecoldef
column-def:
References: column-constraint type-name
See also: lang_altertable.html lang_altertable.html#altertabaddcol lang_createtable.html lang_createtable.html#tablecoldef
column-name-list:
See also: lang_createtrigger.html lang_insert.html lang_update.html lang_upsert.html
comment-syntax:
commit-stmt:
common-table-expression:
References: select-stmt
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
compound-operator:
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
compound-select-stmt:
References: common-table-expression expr ordering-term select-core
See also: lang_select.html#compound
conflict-clause:
See also: lang_altertable.html lang_conflict.html lang_createtable.html lang_createtable.html#notnullconst
create-index-stmt:
create-table-stmt:
References: column-def select-stmt table-constraint
See also: lang_createtable.html
create-trigger-stmt:
References: delete-stmt expr insert-stmt select-stmt update-stmt
See also: lang_createtrigger.html
create-view-stmt:
create-virtual-table-stmt:
cte-table-name:
delete-stmt:
References: common-table-expression expr qualified-table-name returning-clause
See also: lang_createtrigger.html lang_delete.html
delete-stmt-limited:
References: common-table-expression expr ordering-term qualified-table-name returning-clause
See also: lang_delete.html
detach-stmt:
drop-index-stmt:
drop-table-stmt:
drop-trigger-stmt:
drop-view-stmt:
expr:
References: filter-clause literal-value over-clause raise-function select-stmt type-name
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
factored-select-stmt:
References: common-table-expression compound-operator expr ordering-term select-core
See also: lang_select.html
filter-clause:
References: expr
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
foreign-key-clause:
See also: lang_altertable.html lang_altertable.html#altertabaddcol lang_createtable.html
frame-spec:
References: expr
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
indexed-column:
References: expr
See also: lang_createindex.html lang_createtable.html lang_createtable.html#primkeyconst lang_createtable.html#uniqueconst lang_createtrigger.html lang_insert.html lang_upsert.html partialindex.html
insert-stmt:
References: common-table-expression expr returning-clause select-stmt upsert-clause
See also: lang_createtrigger.html lang_insert.html
join-clause:
References: join-constraint join-operator table-or-subquery
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
join-constraint:
References: expr
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#fromclause lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
join-operator:
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#fromclause lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
literal-value:
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
numeric-literal:
ordering-term:
References: expr
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
over-clause:
References: expr frame-spec ordering-term
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
pragma-stmt:
pragma-value:
qualified-table-name:
See also: lang_createtrigger.html lang_delete.html lang_indexedby.html lang_update.html
raise-function:
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createtrigger.html#raise lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
recursive-cte:
reindex-stmt:
release-stmt:
result-column:
References: expr
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
returning-clause:
References: expr
See also: lang_createtrigger.html lang_delete.html lang_insert.html lang_returning.html lang_update.html
rollback-stmt:
savepoint-stmt:
select-core:
References: expr result-column table-or-subquery
See also: lang_select.html lang_select.html#compound lang_select.html#simpleselect
select-stmt:
References: common-table-expression compound-operator expr ordering-term result-column table-or-subquery
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html lang_with.html#recursivecte partialindex.html
signed-number:
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html pragma.html#syntax
simple-function-invocation:
simple-select-stmt:
References: common-table-expression expr ordering-term select-core
See also: lang_select.html#simpleselect
sql-stmt:
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: lang.html lang_explain.html
sql-stmt-list:
table-constraint:
References: conflict-clause expr foreign-key-clause indexed-column
See also: lang_createtable.html lang_createtable.html#primkeyconst lang_createtable.html#tablecoldef lang_createtable.html#uniqueconst
table-or-subquery:
References: expr join-clause select-stmt
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
type-name:
References: signed-number
See also: lang_aggfunc.html lang_altertable.html lang_attach.html lang_createindex.html lang_createtable.html lang_createtrigger.html lang_createview.html lang_delete.html lang_expr.html lang_insert.html lang_returning.html lang_select.html lang_select.html#compound lang_select.html#simpleselect lang_update.html lang_upsert.html lang_with.html partialindex.html
update-stmt:
References: column-name-list common-table-expression expr join-clause qualified-table-name returning-clause table-or-subquery
See also: lang_createtrigger.html lang_update.html
update-stmt-limited:
References: column-name-list common-table-expression expr join-clause ordering-term qualified-table-name returning-clause table-or-subquery
See also: lang_update.html#upfrom
upsert-clause:
References: column-name-list expr indexed-column
See also: lang_createtrigger.html lang_insert.html lang_upsert.html
vacuum-stmt:
window-defn:
window-function-invocation:
with-clause:
SQLite is in the Public Domain.
https://sqlite.org/syntaxdiagrams.html