显示开启事务

时间:2021-09-06 22:42:55   收藏:0   阅读:21

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!