updating or inserting database problem
Hi,
I have a problem when i try to insert or update records within database from java, i m using ms access.
I can retrive the data from the table but when i insert or update it , the code executes without any error but has no effect on the table.
I would be thankful if u guyz help me out .
The code is below :
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");//loading drivers
Connection conn = DriverManager.getConnection("jdbc:odbc:client");
Statement s = conn.createStatement();
ResultSet rs = s.executeQuery("insert into client (name,hours,minutes) values ('ik',2,34)");
/*int c = s.executeUpdate("insert into client (name,hours,minutes) values ('ik',2,34)");
rs.absolute(2);
rs.updateString("Name","dla");
rs = s.executeQuery("commit");*/
rs.close();
s.close();
conn.close();

