没有不值得去解决的问题,也没有不值得去学习的技术!

Install SQLite on Windows 10

Finally, run the sqlite3 command in the command prompt. The .help command now responds.

1. Open the URL: https://www.sqlite.org/download.html. Download sqlite-dll-win64-x64-3330000.zip. See Figure 1.

Open the URL: https://www.sqlite.org/download.html. Download sqlite-dll-win64-x64-3330000.zip.
Figure 1

2. Copy the files sqlite3.def and sqlite3.dll to the directory D:\Program Files\SQLite. See Figure 2.

Copy the files sqlite3.def and sqlite3.dll to the directory D:\Program Files\SQLite.
Figure 2

3. Add D:\Program Files\SQLite to the PATH environment variable. See Figure 3.

Add D:\Program Files\SQLite to the PATH environment variable
Figure 3

4. Finally, run the sqlite3 command in the command prompt, which will display the following result. This indicates a successful installation. However, the .help command does not respond. See Figure 4.

Finally, run the sqlite3 command in the command prompt, which will display the following result. This indicates a successful installation. However, the .help command does not respond.
Figure 4
Plaintext

PS E:\Develop\2020> sqlite3
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .table
sqlite> sqlite3
   ...> .help

5. Download sqlite-dll-win32-x86-3330000.zip and sqlite-tools-win32-x86-3330000.zip. After extracting, copy them to the directory D:\Program Files\SQLite. See Figure 5.

Download sqlite-dll-win32-x86-3330000.zip and sqlite-tools-win32-x86-3330000.zip. After extracting, copy them to the directory D:\Program Files\SQLite.
Figure 5

6. Finally, run the sqlite3 command in the command prompt. The .help command now responds. See Figure 6.

Finally, run the sqlite3 command in the command prompt. The .help command now responds.
Figure 6
Plaintext

PS E:\Develop\2020> sqlite3
SQLite version 3.7.17 2013-05-20 00:56:22
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
                         If TABLE specified, only dump tables matching
                         LIKE pattern TABLE.
.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.
                         With no args, it turns EXPLAIN on.
.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
                         If TABLE specified, only show indices for tables
                         matching LIKE pattern TABLE.
.log FILE|off          Turn logging on or off.  FILE can be stderr/stdout
.mode MODE ?TABLE?     Set output mode where MODE is one of:
                         csv      Comma-separated values
                         column   Left-aligned columns.  (See .width)
                         html     HTML  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      Use STRING in place of NULL values
.output FILENAME       Send output to FILENAME
.output stdout         Send output to the screen
.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
.schema ?TABLE?        Show the CREATE statements
                         If TABLE specified, only show tables matching
                         LIKE pattern TABLE.
.separator STRING      Change separator used by output mode and .import
.show                  Show the current values for various settings
.stats ON|OFF          Turn stats on or off
.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
.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
.timer ON|OFF          Turn the CPU timer measurement on or off
sqlite>

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系