MySQL Forums
Forum List  »  General

Start Transaction Error
Posted by: Ted Geoffrey
Date: June 14, 2024 05:18AM

Hi,

Hopefully an easy question. I normally run queries like this

START TRANACTION;
UPDATE/INSERT/DELETE whatever;
COMMIT;

I missed out a commit and did 2 queries without a commit in the middle.

START TRANACTION;
UPDATE/INSERT/DELETE whatever;
START TRANACTION;
UPDATE/INSERT/DELETE whatever;
COMMIT;

Does the 2nd Start transaction auto-commit the first or will this mess things up in the DB?

Options: ReplyQuote


Subject
Written By
Posted
Start Transaction Error
June 14, 2024 05:18AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.