sql server
begin tran update Person set Name=‘20210906_3‘ where id=1; -- ROLLBACK -- 回滚事务 -- COMMIT -- 提交事务
mysql
begin; update Person set Name=‘20210906_3‘ where id=1; -- ROLLBACK -- 回滚事务 -- COMMIT -- 提交事务
原文:https://www.cnblogs.com/tomorrow0/p/15233116.html