我想将此SQL查询更改为laravel 5.5并将其显示为刀片php
$sql_rsk_down = "SELECT COUNT(*) FROM data_ap WHERE AP_NAME LIKE 'RSK%' AND STATUS LIKE '%DOWN%'
$count = DB::table('data_ap')
->where('AP_NAME','like','RSK%')
->where('STATUS','like','%DOWN%')
->count();
return view('your_blade', compact('count'));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.