Database / SQLite Interview questions
What is the file format of a SQLite database?
A SQLite database is stored as a single, ordinary binary file on disk, using a well-documented, stable file format that SQLite guarantees to maintain backward compatibility with indefinitely — a database file created by SQLite version 3 many years ago can still be opened by the latest version today.
$ file mydata.db mydata.db: SQLite 3.x database
Internally, the file is organized into fixed-size pages (commonly 4096 bytes), storing the schema, table data (organized as B-trees), and indexes all within that same file. Because it's just a normal file, it can be copied, moved, emailed, or backed up with ordinary file operations — there's no special export/import step required the way there typically is with a server-based database's internal storage.
More Related questions...