Usage of FIND_IN_SET in query [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . $query=$this->db ->select(a.date,group_concat(s.name) ->from("tbl_attendance a,tbl_students s") ->WHERE ("FIND_IN_SET(s.student_id, a.attendance)")->group_by("a.date") ->get(); I wanted to know whether I have used the FIND_IN_SET and group_by functions correctly. Thanks in advance 回答1: FIND_IN_SET() returns the