Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在计算数据库中有多少行匹配两个条件
$rows = Jelly::select('brief')->where('creator_id', '=', $this->view->user->id, 'and', 'name', '=', $name)->count();
我很久以前做过这个,忘记了如何做。我想知道这是否是正确的做法。
我似乎无法通过谷歌找到我的答案。
$rows = Jelly::select('brief')->where('creator_id', '=', $this->view->user->id )->where('name', '=', $name)->count();