0

So my terminal which says

sqlite>

and I enter the following text:

sqlite> test.db

The problem is when I press enter, it just gives me:

...>

How come it is not creating the database? I've tried also entering:

sqlite> sqlite3 test.db

But that didn't work either. What is my problem?

1 Answer 1

1

execute sqlite3 <db_name> from the command line before you have the sqlite3 terminal open.

for example:

C:\> sqlite3 mydb
sqlite> create table table1 (....)

There is additional documentation in the sqlite command line documentation.

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

2 Comments

What if I don't have a database created yet? That's why I was trying to make test.db
the first command will create the database mydb for you if it doesn't exist yet.

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.