Class.forName("oracle.jdbc.driver.OracleDriver");
Connection connect =DriverManager.getConnection("jdbc:oracle:thin:@172.17.0.14:1521:develop","username","password");
String qry=("update sample set one=2 where two=3");
PreparedStatement ps = null;
ps=connect.prepareStatement(qry);
int i=ps.executeUpdate();
if(i==1)
out.println("success");
else
out.println("failed");
The above code is not working
The table is create table (one number,two number);
i tried some other queries like select and delete and insert is working fine then how to resolve this