ResultSetMetaData in JDBC example

The object of java.sql.ResultSetMetaData can be used to get the details of the columns available in the ResultSet object. Some of the important methods of ResultSetMetaData are [crayon-68eb

Read More →

Connect to Oracle Database using JDBC

In this post we will see the sample code to connect to Oracle Database using JDBC drivers in java. For connecting to Oracle database we will need the following 1. Connection URL The format is [cray

Read More →

Select records using Prepared Statement

To select records using Prepared Statement in java we use

“A ResultSet object maintains a cursor pointing to its current row of data. Initially the cursor is

Read More →