Professional Documents
Culture Documents
.bail ON|OFF .separator STRING contain a mix of SQL statements and meta-comm
Stop after hitting an error. Default OFF Change separator used by output mode and ands.
List names and files of attached databases .show Print commands before execution.
.dump ?TABLE? ... Show the current values for various settings -[no]header
Turn headers on or off.
Dump the database in an SQL text format. .stats ON|OFF
Turn command echo on or off .tables ?TABLE? Stop after hitting an error.
Turn display of headers on or off .timer ON|OFF Query results will be displayed in a table like form,
using whitespace characters to separate the
.help Turn the CPU timer measurement on or off
columns and align the output.
Shows this information.
sqlite3 See Also -csv
.import FILE TABLE
Set output mode to CSV (comma separated
Import data from FILE into TABLE http://www.sqlite.org/
values).
.indices ?TABLE? The sqlite3-doc package.
-html
Show names of all indices
Query results will be output as simple HTML tables.
.load FILE ?ENTRY?
-line
Load an extension library
Query results will be displayed with one value per
.log FILE|off line, rows separated by a blank line. Designed to
Turn logging on or off. FILE can be stderr/stdout be easily parsed by scripts or other programs
.prompt MAIN CONTINUE Set string used to represent NULL values. Default
Replace the standard prompts is '' (empty string).
.quit -version
Exit this program Show SQLite version.
Restore content of DB (default "main") from FILE Show help on options and exit.
Richard Holloway (richardjh) This cheat sheet was published on 13th May, 2012 FeedbackFair, increase your conversion rate today!
cheatography.com/richardjh/ and was last updated on 13th May, 2012. Try it free!
richardjh.org http://www.FeedbackFair.com