Disabling auto-commit allows multiple operations to be grouped into a single transaction.
When auto-commit is enabled, each SQL statement is treated as a transaction and committed immediately. Disabling it lets you control when to commit, ensuring that a sequence of operations either all succeed or fail together, maintaining data integrity. For example, during an e-commerce checkout, you can ensure that updating inventory and processing payment happen together.