Automatic Rollback if COMMIT TRANSACTION is not reached
问题 Consider the following: START TRANSACTION; BEGIN; INSERT INTO prp_property1 (module_name,environment_name,NAME,VALUE) VALUES ('','production','','300000'); /** Assume there is syntax error SQL here...**/ Blah blah blah DELETE FROM prp_property1 WHERE environment_name = 'production'; COMMIT TRANSACTION; Question: I noticed that the transaction automatically rolls back and the record insert attempt fails. If I don't provide a error handler or error check along with ROLLBACK TRANSACTION as above