0

i know the command to create a database in sqlite. i.e sqlite3 databasename.sqlite. But can anybody tell me what is the command to open an existing database in terminal. Please anybody help me

1 Answer 1

5

You simply use sqlite3 myExistingDatabase.sqlite.

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

2 Comments

but i am having a doubt say my existing database name is test. if i write sqlite3 test.sqlite what does it mean am i creating a new database or opening an existing one .Because same is the syntax for creating a new database.
The behavior is simple and documented (for example in the man-page): if the filename exists it is opened. If it doesn't exist it is created first. If you're still afraid, just make a copy of the original database and try it.

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.