public function batchInsert($table, $columns, $rows)
    {
        $cmdPromise = $this->createCommand()->batchInsert($table, $columns, $rows)->execute();
        return $this->execPromise($cmdPromise, "insert into $table");
    }
public function batchInsert($table, $columns, $rows)
    {
        $cmdPromise = $this->createCommand()->batchInsert($table, $columns, $rows)->execute();
        return $this->execPromise($cmdPromise, "insert into $table");
    }
public function batchInsert ( $ table , $ columns , $ rows ) { $ cmdPromise = $ this -> createCommand ( ) -> batchInsert ( $ table , $ columns , $ rows ) -> execute ( ) ; return $ this -> execPromise ( $ cmdPromise , "insert into $table" ) ; }
Creates and executes a batch INSERT SQL statement.
The method will properly escape the column names, and bind the values to be inserted.
@param string $table the table that new rows will be inserted into.
@param array $columns the column names.
@param array $rows the rows to be batch inserted into the table
@return LazyPromiseInterface
Creates and executes a batch INSERT SQL statement . The method will properly escape the column names and bind the values to be inserted .