$file_handle = file_get_contents('D:\ruanjian\phpstudy_pro\WWW\路径');
$lists = json_decode($file_handle,true);
$Major = file_get_contents('D:\ruanjian\phpstudy_pro\WWW\路径');
$list = json_decode($Major,true);
$aop = Db::name('数据库名')->insertAll($list);
$aops = Db::name('数据库名')->limit(20)->select()->toArray();
本地文件导入数据库
猜你喜欢
转载自blog.csdn.net/weixin_43018356/article/details/114369488
今日推荐
周排行