This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in insering data in msaccess thru jdbc

sukhesh raturi
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
friends when i use to insert data in database using execute update there is no problem ,but when i used prepared statement
to insert the same data in ms access its not working.Its funny that the programme is running on sql server without any problem
here is the code,please sort it out
few lines of code....

Connection con1=DriverManager.getConnection("jdbc dbc:sraturi");
PreparedStatement pst=con1.prepareStatement("INSERT INTO sr values(?,?,?)");
System.out.println("before update");

int r =pst.executeUpdate();
System.out.print("update completed" + r );

catch (Exception e)
System.out.println(" ");
thanx in advance
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic