-- 开启事务
start transaction
update cardinfo set money = money - 1000 where username = 'aa'
update cardinfo set money = money + 1000 where username = 'bb'
-- 回滚
rollback
-- 提交
commit
-- 开启事务
start transaction
update cardinfo set money = money - 1000 where username = 'aa'
update cardinfo set money = money + 1000 where username = 'bb'
-- 回滚
rollback
-- 提交
commit
暂无评论
2023-12-22
2023-12-15
2023-11-14
2023-11-13
2023-11-13
2023-11-13
2023-11-13
2023-11-13
2023-11-13
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-18
2024-05-18
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17