用于创建数据库的SQLite错误

Abh*_*aye -1 sqlite syntax-error

SQLite version 3.8.0.2 2013-09-03 17:11:13
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> $sqlite3 DatabaseName.db;
Error: near "$sqlite3": syntax error
sqlite> DatabaseName.db;
Error: near "DatabaseName": syntax error
sqlite> sqlite3 DatabaseName.db;
Error: near "sqlite3": syntax error
sqlite>
Run Code Online (Sandbox Code Playgroud)

我正在尝试在SQLite中创建一个数据库.我收到上面的错误.请帮忙

Tom*_*err 11

sqlite3 DatabaseName.db是你在命令行使用的,而不是你已经启动了shell.在命令行运行它将在shell中打开它,空数据库已经打开.

当你的提示是sqlite>,你已经在shell中了.

以下是一些文档:http: //sqlite.org/sqlite.html