Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Fern Sanchez   on Jul 09 In Java Category.

  
Question Answered By: Alvin Nguyen   on Jul 09

For inserting to DB you can’t use stmt.executeQuery method, you must use stmt.executeUpdate( sqlStatment ).Meanwhile you must commit any changes in Oracle ,you can do it with stmt.executeUpdate( “commit” ) or you can set auto commit to true. You can do it with this instruction conn.setAutoCommit(true).please check its syntax.



I hope this can help you, let me know if you have any problem.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on SERVLET JDBC Or get search suggestion and latest updates.


Tagged: