SQLite学习笔记(1)-安装及其点命令
发布时间:2020-12-12 19:40:43 所属栏目:百科 来源:网络整理
导读:SQLite安装(版本:3.8.11.1) 在Windows上安装SQLite以及SQLite的点命令 访问点击进行下载,从Windows区进行下载 下载 sqlite-shell-win32-*.zip 和 sqlite-dll-win32-*.zip 压缩文件 从D盘下创建文件夹D:SQLite,并将下载的二个压缩文件解压在此, 将得到 s
SQLite安装(版本:3.8.11.1) 在Windows上安装SQLite以及SQLite的点命令 访问点击进行下载,从Windows区进行下载 下载sqlite-shell-win32-*.zip和sqlite-dll-win32-*.zip压缩文件 从D盘下创建文件夹D:SQLite,并将下载的二个压缩文件解压在此,将得到sqlite3.def、sqlite3.dll 和 sqlite3.exe 文件。 将D:SQLite加入到path环境变量,最后在命令提示符下,使用sqlite3命令,将显示如下结果。
C:UsersAdministrator>sqlite3 SQLite version 3.8.11.1 2015-07-29 20:00:57 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite> SQLite上有许多简单好用的命令,这些命令不以“;”结尾,被称为点命令。 在命令提示符中输入.help,其结果显示如下。 sqlite> .help .backup ?DB? FILE Backup DB (default "main") to FILE .bail on|off Stop after hitting an error. Default OFF .binary on|off Turn binary output on or off. Default OFF .clone NEWDB Clone data into NEWDB from the existing database .databases List names and files of attached databases .dbinfo ?DB? Show status information about the database .dump ?TABLE? ... Dump the database in an SQL text format If TABLE specified,only dump tables matching LIKE pattern TABLE. .echo on|off Turn command echo on or off .eqp on|off Enable or disable automatic EXPLAIN QUERY PLAN .exit Exit this program .explain ?on|off? Turn output mode suitable for EXPLAIN on or off. With no args,it turns EXPLAIN on. .fullschema Show schema and the content of sqlite_stat tables .headers on|off Turn display of headers on or off .help Show this message .import FILE TABLE Import data from FILE into TABLE .indexes ?TABLE? Show names of all indexes If TABLE specified,only show indexes for tables matching LIKE pattern TABLE. .limit ?LIMIT? ?VAL? Display or change the value of an SQLITE_LIMIT .load FILE ?ENTRY? Load an extension library .log FILE|off Turn logging on or off. FILE can be stderr/stdout .mode MODE ?TABLE? Set output mode where MODE is one of: ascii Columns/rows delimited by 0x1F and 0x1E 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 strings tabs Tab-separated values tcl TCL list elements .nullvalue STRING Use STRING in place of NULL values .once FILENAME Output for the next SQL command only to FILENAME .open ?FILENAME? Close existing database and reopen FILENAME .output ?FILENAME? Send output to FILENAME or stdout .print STRING... Print literal STRING .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 .save FILE Write in-memory database into FILE .scanstats on|off Turn sqlite3_stmt_scanstatus() metrics on or off .schema ?TABLE? Show the CREATE statements If TABLE specified,only show tables matching LIKE pattern TABLE. .separator COL ?ROW? Change the column separator and optionally the row separator for both the output mode and .import .shell CMD ARGS... Run CMD ARGS... in a system shell .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 LIKE pattern TABLE. .timeout MS Try opening locked tables for MS milliseconds .timer on|off Turn SQL timer on or off .trace FILE|off Output each SQL statement as it is run .vfsname ?AUX? Print the name of the VFS stack .width NUM1 NUM2 ... Set column widths for "column" mode Negative values right-justify (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 如何在Xcode OS X Swift Playground中使用GLKit?
- c# – 企业库迁移 – 您必须配置容器以提供此值
- complie the open source flex sdk is so easy
- install flashplayer
- 史上最全常用正则表达式
- Oracle number类型前端界面和数据库查询不一致 number精度问
- ruby-on-rails – 使用before_action过滤器的RSPEC测试索引
- ORACLE中Like与Instr模糊查询性能大比拼(转载)
- Swift 3.0预测:扩展性更强、类型系统重构、完善泛型
- Swift语法——Swift Sequences 探究