import java.sql.*; public class RelativeBugScript { public static void main( String[] args ) { try { Class.forName( "com.mysql.jdbc.Driver" ).newInstance(); } catch( Exception e ) { System.err.println( "Unable to load driver." ); } try { Connection connection = DriverManager.getConnection( "jdbc:mysql://localhost/testtime?user=root" ); Statement stmt = connection.createStatement(); ResultSet rs = stmt.executeQuery( "select * from timetable" ); rs.relative( 1 ); rs.getTimestamp( 2 ); rs.close(); stmt.close(); connection.close(); } catch( SQLException e ) { e.printStackTrace(); } } }