I have used SQLIte3 to create databases and then added tables to it. Then i closed the terminal and reopened it.
I typed the command sqlite3, and typed select * from tableName; It says the table is not found.
Think i have to select the database first and then type the above select statement to work. So how can i do that ?
SQL commands like show databases; is not recognized.
You have to write
sqlite3 DB_NAMEon terminal to open database. Then you can see sqlite prompt likesqlite3>You can enter commandselect * from tableNamethere, so that your tables will be listed. You can also try.schemacommand to see the schema of your data base. Refer the site http://www.sqlite.org/ for more details.