If you define table type as InnoDB, you can use transactions. You will need set AUTOCOMMIT=0
, and after you can issue COMMIT
or ROLLBACK
at the end of query or session to submit or cancel a transaction.
ROLLBACK -- will undo the changes that you have made
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…