Opposite of MySQL FIND_IN_SET

前端 未结 4 925
执笔经年
执笔经年 2020-12-10 02:12

How can I do the equivalent of:

!FIND_IN_SET(\'needle\', haystack)
4条回答
  •  离开以前
    2020-12-10 02:57

    FIND_IN_SET returns the index of the match if it is found, and returns 0 if it is not found. Since 0 is FALSE you can just use NOT FIND_IN_SET('needle', 'haystack')

提交回复
热议问题