From the command line sqlite3 gives output:
SQLite version 3.11.0 2016-02-15 17:29:24
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>
tried to quit after that using command
sqlite> sqlite3> .quit
it does not quit but gives output
sqlite> sqlite3> .quit
...>
Then I come back to command prompt with ctrl+D
Then to create Database I entered command
sqlite3 TheftSiren.db
sqlite3 TheftSiren.db
SQLite version 3.11.0 2016-02-15 17:29:24
Enter ".help" for usage hints.
sqlite>
I used ctrl+D again to come to command prompt
To see if db i created I tried command
sqlite3> .databases
[1] 2601
SQLite version 3.11.0 2016-02-15 17:29:24
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
gt: error: neither tool nor script specified; option -help lists possible tools
[1]+ Stopped sqlite3
.databases: command not found
it also failed
can someone tell what i the right way of handling these?
I also tried
'sqlite> sqlite3 TheftSiren.db
...> CREATE TABLE DB (
...> imei CHAR(50) PRIMARY KEY NOT NULL,
...> mobile_num CHAR(50) NOT NULL,
...> passwd CHAR(50) NOT NULL,
...> id INT NOT NULL
...> );
Error: near "sqlite3": syntax error'
and
'sqlite> sqlite TheftSiren.db
...> CREATE TABLE DB (
...> imei CHAR(50) PRIMARY KEY NOT NULL,
...> mobile_num CHAR(50) NOT NULL,
...> passwd CHAR(50) NOT NULL,
...> id INT NOT NULL
...> );
Error: near "sqlite": syntax error'
sqlite3>garbage from? What is the actual problem you're trying to solve?