Example - using Imaginary’s mSQL Driver -II
String str = rs.getString(2);
System.out.println(“key = “ + a);
System.out.println(“str = “ + str); }
//close the query execution and the database
connection before exiting
//catch any exception and print it to the
System.out.println (e.getMessage() );