插件 | 内容建站系统 V3.9 |
应用作者 | 迅睿官方团队 |
发布时间 | 2022-03-01 15:30:06 |
更新时间 | 2024-04-03 09:44:20 |
$result = \Phpcmf\Service::M()->db->table('1_news') ->whereNotIn('id', $blockedIds) // 使用$blockedIds数组排除指定的id ->get() ->getResultArray();
如何使用$blockedIds数组排除指定的id?
是whereNotIn吗
->whereNotIn('id', $blockedIds)