where($id,"in",$supplier_id)->select; like 查询 2-例如 $supplier_id =(1,2,3); $id=1; $result=Db::name("表")->where($supplier_id,"like","%".$id."%")->select; 参考地址:https://www.kancloud.cn/he_he/thinkphp5/787173" />

tp5 like查询 和in查询

发布于:2021-10-18 23:37:40

in 查询


1? 例如:
$supplier_id =(1,2,3);


$id=1;


$result=Db::name("表")->where($id,"in",$supplier_id)->select;


like 查询


2-例如


$supplier_id =(1,2,3);


$id=1;


$result=Db::name("表")->where($supplier_id,"like","%".$id."%")->select;


参考地址:https://www.kancloud.cn/he_he/thinkphp5/787173

相关推荐

最新更新

猜你喜欢