yii2 批量插入

$other_account = \Yii::$app->db->createCommand()
->batchInsert(CrmOtherAdAccount::tableName(),['platform_name','recharge_principal','reg_or_renewal','kaihu_id'],
$other_ad_account)
->execute();

猜你喜欢

转载自www.cnblogs.com/jjchi/p/9467014.html
今日推荐