• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no error in preparedstatement executeupdate but db table is not updated

 
Vinanti Vishesh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to insert data into mysql table.
I do not get any error when I run http://localhost:8080//mysql_insert3.jsp but mysql table student is also not getting updated.
Please help...

in MySQL:

mysql> describe student;



in JSP


%>
</body>
</html>
 
Paul Clapham
Sheriff
Posts: 21583
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I notice that your SQL doesn't have correct whitespace. But how do you know what did or didn't happen? You haven't described the output you get, both in the JSP output (if it worked) and in the log files (if an exception was thrown).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic