db('shop_goods')->where('FIND_IN_SET(:id,trade)',['id' => '1'])->select()
多个这么写,没找到更好的办法,如果有麻烦下方评论留言参考一下
$model->where('find_in_set("58",`cateids`) OR find_in_set("107",`cateids`)')->find();
db('shop_goods')->where('FIND_IN_SET(:id,trade)',['id' => '1'])->select()
多个这么写,没找到更好的办法,如果有麻烦下方评论留言参考一下
$model->where('find_in_set("58",`cateids`) OR find_in_set("107",`cateids`)')->find();