可以接著上一步操作,直接向dos視窗輸入.help命令來檢視sqlite的所有命令列及解釋如下:
f:\>sqlite3
sqlite version 3.6.16
enter ".help" for instructions
enter sql statements terminated with a ";"
sqlite> .help
也可以ctrl+c結束命令,想dos視窗 輸入sqlite3執行後再輸入.help命令如下:
f:\>sqlite3
sqlite version 3.6.16
enter ".help" for instructions
enter sql statements terminated with a ";"
sqlite> .help
顯示如下:
.backup ?db? file
backup db (default "main") to file
.bail on|off
stop after hitting an error. default off
.databases
list names and files of attached databases
.dump ?table? ...
dump the database in an sql text format
.echo on|off
turn command echo on or off
.exit
exit this program
.explain on|off
turn output mode suitable for explain on or off.
.genfkey ?options?
options are:
--no-drop: do not drop old fkey triggers.
--ignore-errors: ignore tables with fkey errors
--exec: execute generated sql immediately
see file tool/genfkey.readme in the source
distribution for further information.
.header(s) on|off
turn display of headers on or off
.help
show this message
.import file table
import data from file into table
.indices table
show names of all indices on table
.load file ?entry?
load an extension library
.mode mode ?table?
set output mode where mode is one of:
csv comma-separated values
column left-aligned columns. (see .width)
html html >table< code
insert sql insert statements for table
line one value per line
list values delimited by .separator string
tabs tab-separated values
tcl tcl list elements
.nullvalue string
print string in place of null values
.output filename
send output to filename
.output stdout
send output to the screen
.prompt main continue
replace the standard prompts
.quit
exit this program
.read filename
execute sql in filename
.restore ?db? file
restore content of db (default "main") from file
.schema ?table?
show the create statements
.separator string
change separator used by output mode and .import
.show
show the current values for various settings
.tables ?pattern?
list names of tables matching a like pattern
.timeout ms
try opening locked tables for ms milliseconds
.width num num ...
set column widths for "column" mode
SQLITE入門 逐步講解SQLITE命令列 一
首先做點鋪墊說明 sqlite程式通過查詢分號 來決定乙個sql語句的結束,所以要執行sql語句請確保在sql語句後有分號 如果你省略分號,sqlite3將給你乙個連續的命令提示符 並等你給當前的sql命令新增更多的文字。這個特點讓你輸入多行的多個sql語句.但點號 命令不要分號 ctrl c可以結...
SQLITE入門 逐步講解SQLITE命令列 二
可以接著上一步操作,直接向dos視窗輸入.help命令來檢視sqlite的所有命令列及解釋如下 f sqlite3 sqlite version 3.6.16 enter help for instructions enter sql statements terminated with a sql...
氣泡排序之逐步講解
for int i 0 ia j 分析該程式,其中i表示的是遍歷整個陣列的個數,i 0 n 2,一共n 1次。j 1 n i 1 該程式內部迴圈執行的最後一次,j 1,j 2,滿足條件。氣泡排序相當於一次游泳的過程,第一次遍歷遊到終點,第二次是終點 1。最後一次是只遊一步。問題 能否把n i整體作為...