I am simply inserting a row and it does nt even throw exception but the database is nt getting updated
please find out what is wrong with this code
import java.sql.*;
public class Check
{
public static void main(String args[])
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String dataSourceName = "glad1";
String dbURL = "jdbc:odbc:" + dataSourceName;
Connection c= DriverManager.getConnection(dbURL, "","");
Statement st=c.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet rs=st.executeQuery("SELECT * FROM Table1");
rs.moveToInsertRow();
rs.updateString("Name", "AINSWORTH");
rs.updateInt("Age",35);
rs.updateInt("Jug", 6);
rs.insertRow();
}
catch(Exception er)
{
System.out.println("error"+er.getMessage());
}
}
}