One file, many tables
A database is not a folder of files. It is one file that holds many named tables inside it. Each table is a grid of rows and columns. sqlite keeps them all in the one .db file and knows which rows belong to which table. When you delete that file you delete the whole database at once.
Two kinds of command
At the sqlite prompt there are two things you can type, and mixing them up is the first confusion.
- SQL statements start with a keyword like
SELECTorCREATEand end with a semicolon. - Dot commands start with a dot like
.tablesor.quitand control the tool itself.
.tables lists what exists. SELECT asks a question about the data. They are different languages and the dot is the whole difference.