Using java to connect to a mySQL database, if I use a update query like
Update <table_name> set SID='143' where SATR='temp';
and query.execute() return two, that is two entries with SATR as ‘temp’, but if I check the database no change !
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you turned off auto-commit but forgotten to explicitly call
commit()by any chance?