sql_where = "%s and FIND_IN_SET('%s',sub_name)" %(sql_where,sub_name)
精确查询sub_name字段内容
比如字段内容有 te/tes/test
模糊查询会都查出来 精确查询只会查出一个
sql_where = "%s and FIND_IN_SET('%s',sub_name)" %(sql_where,sub_name)
精确查询sub_name字段内容
比如字段内容有 te/tes/test
模糊查询会都查出来 精确查询只会查出一个
本文标题:mysql 精确查询
本文链接:https://www.haomeiwen.com/subject/cyvydqtx.html
网友评论