$data = array(200) { [0] => array(2) { ['id'] => 1, ['name'] => 'name 1' }, [1] => array(2) { ['id'] => 2, ['name'] => 'name 2' } /* ... */ } DB::insert_batch('tbl', $data);
INSERT INTO `tbl` (`id`, `name`) VALUES (1, 'name 1'), (2, 'name 2'), ... (200, 'name 200');
It looks like you're new here. If you want to get involved, click one of these buttons!