【发布时间】:2019-07-11 20:55:52
【问题描述】:
我在 Windows 中使用 Sqlite 进行一些查询(我以 sqlite3 mydb.db 执行它)但我无法重定向输出(我正在尝试像 .tables 这样的普通命令行方式进行操作 > @987654324 @) 因为 sqlite 在命令行下作为程序运行。
official sqlite web page 中有一个名为 Writting results to a file 的部分,但不能以我尝试的方式工作:
.tables .output new_db_output.txt
都没有
.tables | .output new_db_output.txt
有没有办法将输出保存到文件中?
注意:我使用的是 sqlite3 和 windows 7。
【问题讨论】: