Hi,
I am getting this error when i am trying to read records from the Data base.
java.sql.SQLException: Fail to convert to internal representation
The part of the code which i want to execute is :
try
{
Statement stmt = con.createStatement();
ResultSet rs= stmt.executeQuery("select * from employee");
while(rs.next())
{
String name=rs.getString("name");
int Empno =rs.getInt(2);
int class1=rs.getInt(3);
System.out.println(name);
System.out.println(Empno);
System.out.println(class1);
}
}
Please let me know what is the mistake done by me......
Thanks,