begin;
INSERT INTO `dev_dgc`.`user_datas` (`id`, `game_id`, `created`) VALUES (NULL,? '1', '2');
INSERT INTO `dev_dgc`.`user_datas` (`id`, `game_id`, `created`) VALUES (NULL,? '1', '2');
INSERT INTO `dev_dgc`.`user_datas` (`id`, `game_id`, `created`) VALUES (NULL,? '1', '2');
commit;
?
?
?
$this->query('begin'); // 保存新增用户信息 if(!$this->save($data)) { return false; } if(!$PlayerDevice->bindPlayerDevice($data)) { return false; } $this->query('commit');?
?