View RSS Feed

Recent Blogs Posts

  1. Processing ResultSet Objects

    by , 03-10-2012 at 08:42 AM
    Data that has been store in a ResultSet is accessed by a cursor. In ResultSet object, one row of data is pointed by the help of this cursor. In beginning, before 1st row the pointer gets positioned. Different methods are provided by the ResultSet objects so that to move the cursor.

    Given code details the ResultSet object processing.
    Java Code:
    try {
        stmt = con.createStatement();
        ResultSet rs = stmt.executeQuery(query);
        while ( {