SQLite Function Reference
Browse SQLite references by category: string, date and time, math, JSON, flow control and NULL handling, aggregate, window, and system functions. For column declarations and value storage, see SQLite data types and type affinity.
Common tasks: use strftime() to format dates and calculate week numbers, json_each() to iterate JSON array or object entries, and json_extract() to read values from JSON documents. These examples can be tested in the SQLite Playground.
For practical guidance on storing JSON as text or SQLite JSONB, read SQLite JSONB: When and How to Use It.
To run a query without connecting to a server, use the temporary SQLite SQL playground. To reformat SQLite SQL without running it, use the browser-based SQL formatter; SQLite is selected automatically.
For CLI and SQL table-listing commands across SQLite and other database systems, see the cross-database table-listing guide.
For commands to list only views across SQLite and other SQL databases, see List Views in SQL.
To distinguish attached SQLite databases from server database catalogs in other engines, see List Databases in SQL.
To inspect table indexes, their key columns, and expression definitions, see the SQLite index metadata guide.