Post

SQLite3 Notes

SQLite3 Notes

!Systemd

本文主要记录了怎样快速使用 SQLite3,没有别的意思。

Search suggest: SQLite3

0x01 Install

下载页面: http://www.sqlite.org/download.html

0x02 使用

获取帮助

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ sqlite3
SQLite version 3.37.0 2021-12-09 01:34:53
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.




sqlite> .help

sqlite>.show
     echo: off
  explain: off
  headers: off
     mode: column
nullvalue: ""
   output: stdout
separator: "|"
    width:
sqlite>

格式化输出

您可以使用下列的点命令来格式化输出为本教程下面所列出的格式:

1
2
3
4
sqlite>.header on
sqlite>.mode column
sqlite>.timer on
sqlite>

Appendix

以下是参考链接。

EOF

This post is licensed under CC BY 4.0 by the author.