Category Archives: Java

JDBC – Java Database Connectivity @ 2

Last time, we have successfully retrieved a value from the database by calling the executeQuery in the Statement object and make use of the ResultSet object to store the returned values. so how about insert, update and delete?
Continue reading JDBC – Java Database Connectivity @ 2

JDBC – Java Database Connectivity @ 1

JDBC is an API for Java and it defines how your Java application make connection to the database in order to query or update the data.

In the following example, it shows you how to get a value from the database using the JDBC API. To make use of the API, you have to download the JDBC driver of your database. Postgresql Database is used in this example. so the postgresql-8.4-701.jdbc3.jar is added to the eclipse project.
Continue reading JDBC – Java Database Connectivity @ 1