One - One Code All

Blog Content

thinkphp中查询语句中in的使用方法

PHP   2020-11-01 19:32:43

查询语句中使用数组作为参数。

$cate[] = $cid;//$cate为一个数组
$where['cid'] = array('in',$cate);//cid在这个数组中,
M('category')->where($where)->delete();//$where作为条件传进来



上一篇:Kubernetes动态扩缩容,只需告诉deployment一个新的 pod 副本总数即可
下一篇:elasticsearch宕机java_pid1.hprof file exist

The minute you think of giving up, think of the reason why you held on so long.