$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
おすすめ
ランキング