说明
insertAll 方法添加数据成功返回添加成功的条数
示例
$data = [ ['id' => 4,'name' => 'zhangsan4'], ['id' => 5,'name' => 'zhangsan5'], ['id' => 6,'name' => 'zhangsan6'] ]; $memberAddResult = Db::table('demo')->insertAll($data);
输出
3