I'm confused with transaction and autocommit. But there's no documents explains what MySQL autocommit do.
If autocommit on, every INSERT UPDATE DELETE statement will take effect immediately. Does MySQL auto start a transaction to do this?
If not, what's MySQL do? What's the difference to transaction?
In my view:
A statement
INSERT INTO ...
with autocommit on equals to
START TRANSACTION;
INSERT INTO ...;
COMMIT;
with autocommit off.
The two statements in anytime any condition takes the same action.
Is it right?