$list = $this->model
            ->where('FIND_IN_SET(:id,members)', ['id' => $member_id])
            ->field('id,title,image,tips,collection,members')
            ->order('createtime desc')->select();

tp5 查询某个值是否在数据表某一个字段中  FIND_IN_SET

相关文章:

  • 2022-02-04
  • 2021-10-30
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2023-01-06
猜你喜欢
  • 2021-10-27
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
相关资源
相似解决方案