insert multiple rows via a php array into mysql

后端 未结 12 1516
自闭症患者
自闭症患者 2020-11-21 22:35

I\'m passing a large dataset into a MySQL table via PHP using insert commands and I\'m wondering if its possible to insert approximately 1000 rows at a time via a query othe

12条回答
  •  温柔的废话
    2020-11-21 23:24

    Use insert batch in codeigniter to insert multiple row of data.

    $this->db->insert_batch('tabname',$data_array); // $data_array holds the value to be inserted
    

提交回复
热议问题