$transaction = Yii::$app->db->beginTransaction();
try {
// ... executing other SQL statements ...
$transaction->commit();
} catch (\Exception $e) {
$transaction->rollBack();
}
今晚写详细点
Yii2中事务的使用
猜你喜欢
转载自www.cnblogs.com/niuben/p/11088532.html
今日推荐
周排行