version 1.2, 2014/03/24 01:45:35 |
version 1.3, 2015/04/04 23:26:54 |
|
|
.\" First parameter, NAME, should be all caps |
.\" First parameter, NAME, should be all caps |
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection |
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection |
.\" other parameters are allowed: see man(7), man(1) |
.\" other parameters are allowed: see man(7), man(1) |
.TH SQLITE3 1 "Mon Jan 31 11:14:00 2014" |
.TH SQLITE3 1 "Fri Oct 31 10:41:31 EDT 2014" |
.\" Please adjust this date whenever revising the manpage. |
.\" Please adjust this date whenever revising the manpage. |
.\" |
.\" |
.\" Some roff macros, for reference: |
.\" Some roff macros, for reference: |
|
|
$ |
$ |
.B sqlite3 mydata.db |
.B sqlite3 mydata.db |
.br |
.br |
SQLite version 3.8.3 |
SQLite version 3.8.8 |
.br |
.br |
Enter ".help" for instructions |
Enter ".help" for instructions |
.br |
.br |
|
|
sqlite> |
sqlite> |
.B .help |
.B .help |
.nf |
.nf |
.cc | |
.tr %. |
.backup ?DB? FILE Backup DB (default "main") to FILE |
%backup ?DB? FILE Backup DB (default "main") to FILE |
.bail ON|OFF Stop after hitting an error. Default OFF |
%bail on|off Stop after hitting an error. Default OFF |
.databases List names and files of attached databases |
%clone NEWDB Clone data into NEWDB from the existing database |
.dump ?TABLE? ... Dump the database in an SQL text format |
%databases List names and files of attached databases |
|
%dump ?TABLE? ... Dump the database in an SQL text format |
If TABLE specified, only dump tables matching |
If TABLE specified, only dump tables matching |
LIKE pattern TABLE. |
LIKE pattern TABLE. |
.echo ON|OFF Turn command echo on or off |
%echo on|off Turn command echo on or off |
.exit Exit this program |
%eqp on|off Enable or disable automatic EXPLAIN QUERY PLAN |
.explain ?ON|OFF? Turn output mode suitable for EXPLAIN on or off. |
%exit Exit this program |
|
%explain ?on|off? Turn output mode suitable for EXPLAIN on or off. |
With no args, it turns EXPLAIN on. |
With no args, it turns EXPLAIN on. |
.header(s) ON|OFF Turn display of headers on or off |
%fullschema Show schema and the content of sqlite_stat tables |
.help Show this message |
%headers on|off Turn display of headers on or off |
.import FILE TABLE Import data from FILE into TABLE |
%help Show this message |
.indices ?TABLE? Show names of all indices |
%import FILE TABLE Import data from FILE into TABLE |
|
%indices ?TABLE? Show names of all indices |
If TABLE specified, only show indices for tables |
If TABLE specified, only show indices for tables |
matching LIKE pattern TABLE. |
matching LIKE pattern TABLE. |
.load FILE ?ENTRY? Load an extension library |
%load FILE ?ENTRY? Load an extension library |
.log FILE|off Turn logging on or off. FILE can be stderr/stdout |
%log FILE|off Turn logging on or off. FILE can be stderr/stdout |
.mode MODE ?TABLE? Set output mode where MODE is one of: |
%mode MODE ?TABLE? Set output mode where MODE is one of: |
csv Comma-separated values |
csv Comma-separated values |
column Left-aligned columns. (See .width) |
column Left-aligned columns. (See .width) |
html HTML <table> code |
html HTML <table> code |
|
|
list Values delimited by .separator string |
list Values delimited by .separator string |
tabs Tab-separated values |
tabs Tab-separated values |
tcl TCL list elements |
tcl TCL list elements |
.nullvalue STRING Use STRING in place of NULL values |
%nullvalue STRING Use STRING in place of NULL values |
.open ?FILENAME? Close existing database and reopen FILENAME |
%once FILENAME Output for the next SQL command only to FILENAME |
.output FILENAME Send output to FILENAME |
%open ?FILENAME? Close existing database and reopen FILENAME |
.output stdout Send output to the screen |
%output ?FILENAME? Send output to FILENAME or stdout |
.print STRING... Print literal STRING |
%print STRING... Print literal STRING |
.prompt MAIN CONTINUE Replace the standard prompts |
%prompt MAIN CONTINUE Replace the standard prompts |
.quit Exit this program |
%quit Exit this program |
.read FILENAME Execute SQL in FILENAME |
%read FILENAME Execute SQL in FILENAME |
.restore ?DB? FILE Restore content of DB (default "main") from FILE |
%restore ?DB? FILE Restore content of DB (default "main") from FILE |
.schema ?TABLE? Show the CREATE statements |
%save FILE Write in-memory database into FILE |
|
%schema ?TABLE? Show the CREATE statements |
If TABLE specified, only show tables matching |
If TABLE specified, only show tables matching |
LIKE pattern TABLE. |
LIKE pattern TABLE. |
.separator STRING Change separator used by output mode and .import |
%separator STRING ?NL? Change separator used by output mode and .import |
.show Show the current values for various settings |
NL is the end-of-line mark for CSV |
.stats ON|OFF Turn stats on or off |
%shell CMD ARGS... Run CMD ARGS... in a system shell |
.tables ?TABLE? List names of tables |
%show Show the current values for various settings |
|
%stats on|off Turn stats on or off |
|
%system CMD ARGS... Run CMD ARGS... in a system shell |
|
%tables ?TABLE? List names of tables |
If TABLE specified, only list tables matching |
If TABLE specified, only list tables matching |
LIKE pattern TABLE. |
LIKE pattern TABLE. |
.timeout MS Try opening locked tables for MS milliseconds |
%timeout MS Try opening locked tables for MS milliseconds |
.trace FILE|off Output each SQL statement as it is run |
%timer on|off Turn SQL timer on or off |
.vfsname ?AUX? Print the name of the VFS stack |
%trace FILE|off Output each SQL statement as it is run |
.width NUM1 NUM2 ... Set column widths for "column" mode |
%vfsname ?AUX? Print the name of the VFS stack |
.timer ON|OFF Turn the CPU timer measurement on or off |
%width NUM1 NUM2 ... Set column widths for "column" mode |
|
Negative values right-justify |
sqlite> |
sqlite> |
|cc . |
|
.sp |
.sp |
.fi |
.fi |
.SH OPTIONS |
.SH OPTIONS |
|
|
o All other command line options are processed. |
o All other command line options are processed. |
|
|
.SH SEE ALSO |
.SH SEE ALSO |
http://www.sqlite.org/ |
http://www.sqlite.org/cli.html |
.br |
.br |
The sqlite3-doc package. |
The sqlite3-doc package. |
.SH AUTHOR |
.SH AUTHOR |