2

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.

1

2 Answers 2

3

You have to write sqlite3 DB_NAME on terminal to open database. Then you can see sqlite prompt like sqlite3> You can enter command select * from tableName there, so that your tables will be listed. You can also try .schema command to see the schema of your data base. Refer the site http://www.sqlite.org/ for more details.

Sign up to request clarification or add additional context in comments.

Comments

3

You can use SQLite Manager firefox add-on to view sqlite database, table and execute query there.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.