Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install SQLite on Windows 10

Download the SQLite tools, extract them and run the sqlite3 shell from Command Prompt.

Databases2 min read3 steps4 screenshots

Step 1: Download SQLite

Open the SQLite download page and download the sqlite-tools zip for Windows.

The SQLite download page for Windows

Step 2: Extract the files

Extract the zip to a folder, for example your Desktop in a folder named SQLite. It contains three tools:

  • sqlite3.exe is the command-line shell for running SQL.
  • sqldiff.exe compares two SQLite databases.
  • sqlite3_analyzer.exe shows how space is used inside a database.
    The extracted SQLite tools

Step 3: Run SQLite from Command Prompt

  1. Open Command Prompt.
  2. Go to the folder with the files:
cd Desktop\SQLite
  1. Start the shell:
sqlite3
The SQLite shell running

Use the shell

  • Open or create a database: .open database_name
  • Create a table: CREATE TABLE table_name (column1, column2);
  • Insert data: INSERT INTO table_name (column1, column2) VALUES (value1, value2);
  • Read data: SELECT * FROM table_name;

To see all shell commands:

.help
The SQLite help list

To leave:

.quit
Tip: Add the SQLite folder to your Path variable to run sqlite3 from any folder.

Main features of SQLite

  • Serverless. No database server is needed.
  • No setup. It works as soon as it is extracted.
  • One file. A database is a single file.
  • Reliable. Transactions follow ACID rules.
  • Small. It uses very little disk and memory.

Quick recap

  • Download the sqlite-tools zip and extract it.
  • Open Command Prompt in that folder and run sqlite3.
  • Use .help for commands and .quit to exit.