Cheatsheet: SQLite
SQLite Specific Commands
List all tables in the database
Get schema of a table
List all views in the database
Analyze a query
Display a low-level description of how SQLite will execute the SELECT statement
Enable foreign key support
Set journal mode to Write-Ahead Logging (WAL)
Set cache size
Set synchronous mode to FULL
Basic Commands
Create a new table
Insert data into a table
Select data from a table
Table Modifications
Add a new column to a table
Delete a table
Update data in a table
Delete data from a table
Advanced Queries
Select data with a pattern
Group data by a column and count occurrences
Perform an inner join between two tables