Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
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 !
Have you turned off auto-commit but forgotten to explicitly call commit() by any chance?
commit()
Add a comment
If you are not getting any exceptions,you may call commit() method.
auto-commit option may be off.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.