2013-03-10 107 views

回答

4

我猜你输入一个SQLite shell的命令(见下文)

sqlite> sqlite3 mytest.db; 
Error: near "sqlite3": syntax error 

,因为它不是一个有效的sqlite的命令,你得到了错误。 如果您正在创建一个名为mytest.db的数据库,请尝试在Windows命令提示符下输入命令,然后您将进入sqlite shell环境。要找出所有支持的命令,请在sqlite shell中输入.help。

D:\sqlite> sqlite3 mytest.db 
SQLite version 3.6.23 
Enter ".help" for instructions 
Enter SQL statements terminated with a ";" 
sqlite> .help 
+0

谢谢,它的工作。而不是直接双击SQLite.exe,我打开了一个cmd提示符,导航到exe文件所在的文件夹,然后执行命令sqlite3 mytest.db。现在它工作正常。我花了一天多的时间来解决这个问题!希望文档写得更清楚。 – user466663 2013-03-10 13:28:36

相关问题