2013-03-10 64 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

相關問題