TP3.2 LIKE 模糊查询
2017-05-10 本文已影响0人
取个有逼格的名字
比如查询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条件)