我有一大堆数据大概有3w多条下面这样的数据
$user_info = array(
'code'=>$value['code'],
'name'=>$value['name'],
'tel'=>$value['tel'],我想完成
D('DB')->save("$user_info");
这个操作,请问如何在模型里面定义它的数据结构,让它能直接插入这样的数组?
<?php
namespace Home\Model;
use Think\Model;
class UserInfoModel extends Model{
}用基本模型就可以,不胜感激