事务控制语句

-- 开启事务,BEGIN等价于START TRANSACTION
BEGIN;

-- 提交事务,COMMIT等价于COMMIT WORK
COMMIT;

-- 回滚事务,ROLLBACK等价于ROLLBACK WORK
ROLLBACK;

Copyright © 2024 码农人生. All Rights Reserved