K
K
KtoYa2282020-05-09 14:11:32
Java
KtoYa228, 2020-05-09 14:11:32

SQLite query error?

I connect the database:

class.forName("org.sqlite.JDBC");
Connection c = DriverManager.getConnection("jdbc:sqlite:/root/dir/plugins/file/base.db";
Statment st = c.createStatment();
System.out.println(st.execute("CREATE TABLE IF NOT EXISTS a(name TEXT NOT NULL)")) ;


Returns false. What to do? The table created in the first.

UPD: the base is located along the path: /root/dir/plugins/file/base.db.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question