addAll()是记录批量插入
$dataList[] = array('name'=>'thinkphp','email'=>'thinkphp@gamil.com');
$dataList[] = array('name'=>'onethink','email'=>'onethink@gamil.com');
$User->addAll($dataList);
转载请注明:莫晓寒 » Thinkphp一次插入多条数据
addAll()是记录批量插入
$dataList[] = array('name'=>'thinkphp','email'=>'thinkphp@gamil.com');
$dataList[] = array('name'=>'onethink','email'=>'onethink@gamil.com');
$User->addAll($dataList);
转载请注明:莫晓寒 » Thinkphp一次插入多条数据