使用场景:
某个字段存储的数据是以逗号隔开的数据
条件查询可以使用函数
FIND_IN_SET(str,strlist),
select * from user where find_in_set(1,position)
注意其中strlist只识别英文逗号。
使用场景:
某个字段存储的数据是以逗号隔开的数据
条件查询可以使用函数
FIND_IN_SET(str,strlist),
select * from user where find_in_set(1,position)
注意其中strlist只识别英文逗号。