SQLite and JDBC

 

These examples utilize Java's JDBC, which allows a Java program to communicate with a wide range of databases, but the focus here is on SQLite, a simple, but powerful, system, which doesn't require complex database management. The link between SQLite and Java is managed by Taro Saito's sqlite-jdbc driver.

It should be straightforward to modify these examples to employ other database systems, by installing a different driver, and changing the string argument to DriverManager.getConnection() at the start of the code. However, I haven't actually tried it 😀

Preliminaries

Before you start grappling with the intricacies of JDBC, you should first become familiar with SQL and SQLite. Have a look at the following:

My Examples

Other Downloads and Links


Dr. Andrew Davison
E-mail: ad@coe.psu.ac.th
Back to the third-party libraries page