yii-insert-multi-rows Creates and executes an INSERT SQL statement for several rows.

  1. Requirements
  2. Installation
  3. Usage

Creates and executes an INSERT SQL statement for several rows.

Requirements

Yii 1.1 or above

Installation

For insert multi rows, Put this code in components folder under GeneralRepository.php file name.

Usage

$rows = array(
     array('id' => 1, 'name' => 'John'),
     array('id' => 2, 'name' => 'Mark')
);
GeneralRepository::insertSeveral(User::model()->tableName(), $rows);
1 0
1 follower
0 downloads
Yii Version: 1.1.*
License: BSD-3-Clause
Category: Database
Developed by: Nabi
Created on: Dec 18, 2018
Last updated: 2 years ago

Downloads

show all

Related Extensions