SQLite: Create Your Own Database with DB Browser (3.13.1)

Go to my database page

This guide shows step by step how to create a new database and tables with DB Browser for SQLite. Everything explained in simple words.

Important: At the very beginning, you must give the table a name, otherwise the “OK” button will remain grayed out!

1. Create a new database

2. Assign a table name

3. Add fields

4. Field options

5. Collation (sorting behavior)

Recommendation: Choose NOCASE for names and places, BINARY for IDs.

6. Index constraints

Sorting in descending order is not done here, but later in an SQL query:
SELECT * FROM customers ORDER BY Date DESC;

7. Schema

8. Example table

This is how your first table could look:

CREATE TABLE "customers" (
  "id"       INTEGER PRIMARY KEY AUTOINCREMENT,
  "Name"     TEXT NOT NULL COLLATE NOCASE,
  "FirstName"  TEXT,
  "ZIP"      TEXT,
  "City"     TEXT,
  "Date"     TEXT, -- Format YYYY-MM-DD
  "Phone"    TEXT,
  "IBAN"     TEXT UNIQUE
);
  

Now you can fill the table with your own data either using your admin panel or directly in DB Browser.