[MySQL]事务命令

start transaction;
SELECT * FROM user where user_id = 9 for UPDATE;
COMMIT;

你可能感兴趣的:(mysql,数据库,事务,开启事务,回滚)