比如查询ids字段(2,25,23,13,11,15);只查询23。
例如写法:like '%,23' or like '%,23,%' or like '23,%' or like '23'。
TP写法1:

TP写法2:(多个LIKE条件)

比如查询ids字段(2,25,23,13,11,15);只查询23。
例如写法:like '%,23' or like '%,23,%' or like '23,%' or like '23'。
TP写法1:
TP写法2:(多个LIKE条件)
本文标题:TP3.2 LIKE 模糊查询
本文链接:https://www.haomeiwen.com/subject/jsbwtxtx.html
网友评论