Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Update query does not work
- Class.forName("oracle.jdbc.driver.OracleDriver");
- Connection connect =DriverManager.getConnection("jdbc:oracle:thin:@172.17.0.14:1521:develop","sis","psgh");
- 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");
- create table (one number,two number);
Add Comment
Please, Sign In to add comment