mysql 精确查询

2019-01-15  本文已影响0人  刘东青_6f21

sql_where = "%s and FIND_IN_SET('%s',sub_name)" %(sql_where,sub_name)

精确查询sub_name字段内容
比如字段内容有 te/tes/test
模糊查询会都查出来 精确查询只会查出一个

上一篇 下一篇

猜你喜欢

热点阅读