![]() Our SQLite JDBC driver package (i.e., sqlite-jdbc-(VERSION).jar) contains three it probably means no database file is found if the error message is "out of memory", ResultSet rs = statement.executeQuery("select * from person") Statement.executeUpdate("insert into person values(2, 'yui')") Statement.executeUpdate("insert into person values(1, 'leo')") Statement.executeUpdate("create table person (id integer, name string)") Statement.executeUpdate("drop table if exists person") ![]() tQueryTimeout(30) // set timeout to 30 sec. Statement statement = connection.createStatement() > java -classpath ".:sqlite-jdbc-(VERSION).jar" Sample # in macOS or LinuxĬonnection = DriverManager.getConnection("jdbc:sqlite:sample.db") sqlite-jdbc-(VERSION).jar" Sample # in Windows (see the example below)Īssuming sqlite-jdbc-(VERSION).jar is placed in the current directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |