#事务操作
#开启事务操作
begin;
update student set userName='无敌da渣男' where id=4;
select * from student where id=4;
rollback;#事务回滚·返回初始状态,关闭事务。
commit;#提交事务,将内存上的数据写入硬盘。
MySQL事务操作
最新推荐文章于 2024-08-12 23:11:19 发布
#事务操作
#开启事务操作
begin;
update student set userName='无敌da渣男' where id=4;
select * from student where id=4;
rollback;#事务回滚·返回初始状态,关闭事务。
commit;#提交事务,将内存上的数据写入硬盘。