laravel FIND_IN_SET 查询数据

$colname = 'c'; 
$recomend = DB::table('article')
        ->whereRaw('FIND_IN_SET(?,flag)', [$colname])
        ->get();
     dump($recomend);
 

相关推荐

评论