当前位置:网站首页>Advanced learning of MySQL -- basics -- basic operation of transactions

Advanced learning of MySQL -- basics -- basic operation of transactions

2022-07-07 00:34:00 Magic pig 9898

View transaction submission method

select @@autocommit ;
1: Is to automatically submit
0: Is to submit it manually

Set the transaction submission method to manual submission

select @@autocommit = 0;

Commit transaction

commit ;

Roll back the transaction

rollback;

How to start a transaction if it is not submitted manually

start transacttion
perhaps
begin
here , without commit
It doesn't work .

原网站

版权声明
本文为[Magic pig 9898]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130957051907.html