sqlite3.exe是SQLite访问数据库的一个工具,使用命令行的形式。 Shell的命令分为两种,第一是Shell本身的命令,以点开头。第二是用来管理当前数据库的SQL命令,以分号结束。 其中Shell本身的命令分以下几种:控制数据的显示模式;设置Shell读取和显示数据的方式;其他系统控制命令 常用的显示模式控制命令: .header ON|OFF:...
sqlite可以在shell/dos command底下直接执行命令: 对数据库进行SQL操作: sqlite3数据库 "SQL语句 或 .命令;" 输出HTML表格: sqlite3 -html film.db "select * from film;" 将数据库「导出来」: sqlite3 film.db ".dump" > output.sql 利用输出的资料,建立一个一模一样的数据库(加上以上指令,就是标准的...
.echoon|off Turncommandechoon or off .eqp on|off|full|... Enable or disable automatic EXPLAIN QUERY PLAN .excel Display the output of nextcommandinspreadsheet .exit?CODE? Exit this program withreturn-code CODE .expert EXPERIMENTAL. Suggest indexesforqueries .explain ?on|off|auto? Change the ...
shell.c: The command-line interface program itself. This is the C source code file that contains the definition of the main() routine and the loop that prompts for user input and passes that input into the SQLite database engine for processing. shell.c: 命令行接口程序自身。这是 C 源码文...
例如我们想新建一个数据库命名为zieckey.db ,可以直接在shell下输入 sqlite3 zieckey.db , 前提是:先进放sqlite的安装文件夹下然后执行下面的操作: # ./sqlite3 zieckey.db SQLite version 3.0.8 Enter ".help" for instructions sqlite> 这里SQLite version 3.0.8 是SQLite的版本信息。也就是说本文使用的...
... 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. .header(s) ON|OFF Turn display of headers on or off .help Show this message .import FILE TABLE Import da...
.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. .header(s) ON|OFF Turn display of headers on or off .help Show this message .import FILE TABLE Import data from FILE into TABLE ...
例如我们想新建一个数据库命名为zieckey.db ,可以直接在shell下输入 sqlite3 zieckey.db , 前提是:先进放sqlite的安装文件夹下然后执行下面的操作: # ./sqlite3 zieckey.db SQLite version 3.0.8 Enter ".help" for instructions sqlite> 这里SQLite version 3.0.8 是SQLite的版本信息。也就是说本文使用的...
SQLite库包含一个名字叫做sqlite3的命令行,它可以让用户手工输入并执行面向SQLite数据库的SQL命令。本文档提供一个样使用sqlite3的简要说明。 开始 启动sqlite3程序,仅仅需要敲入带有SQLite数据库名字的"sqlite3"命令即可。如果文件不存在,则创建一个新的(数据库)文件。然后sqlite3程序将提示你输入SQL。敲入SQL...
.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. .header(s) ON|OFF Turn display of headers on or off .help Show this message .import FILE TABLE Import data from FILE into TABLE ...