跳到主要内容

begin_transaction

开启一个数据库事务, 并关闭自动提交

声明

bool begin_transaction()

参数

参数名描述

返回值

true: 开始事务, false: 无法开始事务

error: 已经在事务中

使用方式

返回文档