gpt4 book ai didi

SQLite 安装问题

转载 作者:行者123 更新时间:2023-12-03 15:56:12 25 4
gpt4 key购买 nike

我下载了适用于 sqlite 的 windows 二进制文件并解压缩了它们。三个文件

  1. 一个外壳

  2. dll

  3. 分析器

当我尝试运行以从 sqlite shell 创建数据库和表时,我得到......

  SQLite version 3.7.8 2011-09-19 14:49:19
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> sqlite3 test.db
...> create table tbl1(one varchar(10), two smallint);
Error: near "sqlite3": syntax error
sqlite>

当我尝试从命令行(Vista) shell 运行以创建数据库和表时,我得到...

Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\codenamejupiterx>sqlite3 test.db
'sqlite3' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\codenamejupiterx>

有没有人有什么想法?????

最佳答案

没有“安装”。

错误是在 (Windows) PATH environment variable 定义的搜索路径中找不到“sqlite3.exe” .将其添加到 %PATH%(参见 How do I set or change the PATH system variable?)或使用不依赖于 %PATH% 的完整文件限定。完全限定的调用可能如下所示:

C:\path\to\sqlite\sqlite3.exe test.db

通过“双击”Windows 资源管理器中的可执行文件运行 sqlite3 与上述相同 [因为它使用绝对路径来运行 sqlite3 可执行文件]——尽管无法指定数据库名称或其他选项。 (如果需要,这些可以在 sqlite3 的“快捷方式”中指定。)

快乐编码。

关于SQLite 安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7694076/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com