tp5查找值是否在字符串中

作者:星辰網絡工作室 日期:2022-10-27 瀏覽:81

使用find_in_set()方法

第一種方式

where('find_in_set(:house_id,product)',['house_id'=>$house_id])

第二種方式

->where([''=>['EXP',Db::raw("FIND_IN_SET(".$where['house_id'].",a.product)")]])


香港三级日本三级人妇三级四