Each SQL statement is treated as a separate transaction and committed immediately.
With auto-commit enabled, every individual SQL operation is automatically committed to the database, which is convenient but can lead to inconsistent states if a multi-step operation fails partway through. This is often unsuitable for operations like processing a multi-item order in an e-commerce system.
Additional Notes
What happens when auto-commit mode is enabled in JDBC?