pdo_fetchall(‘set AUTOCOMMIT=0’);//关闭自动提交,自此句执行以后,每个SQL语句或者语句块所在的事务都需要显示"commit"才能提交事务
pdo_fetchall(‘START TRANSACTION’);//启动一个新事务
pdo_fetchall(‘ROLLBACK’);//事务回滚
pdo_fetchall(‘COMMIT’);//事务提交
05-31
296
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-19