SQL Array Search

前端 未结 4 1681
悲&欢浪女
悲&欢浪女 2021-01-26 05:45

I have a group feature on my website that allows 1 user to put the userids of any of his or her friends into an invitedusers column. I need to do an SQL search to determine whet

4条回答
  •  感动是毒
    2021-01-26 06:17

    This should do the job:

    SELECT userid, name... FROM mytable WHERE FIND_IN_SET('234', invitedusers) !=0;
    

提交回复
热议问题