Name
.dump — Produce an SQL dump file
Common Usage
.dump [table-pattern ...]Description
The .dump command generates a series of SQL
commands suitable to recreate one or more tables from the
database. If no parameters are given, every table in the
main database will be
dumped. If one or more parameters are given, only those tables
in the main database that
match the provided LIKE
patterns will be dumped. To record the .dump output to a file, use the .output command.
A dump will preserve the values in any ROWID alias column (an
INTEGER PRIMARY KEY
column), but it will not preserve more general ROWID values.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access