ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
>[danger] `whereIn()` 快捷查询方法 + 以下查询等价 ``` self::where('id', 'in', '1,2,3')->select(); self::where('id', 'in', '1,2,3')->select(); self::whereIn('id', '1,2,3')->select(); self::whereIn('id', [1, 2, 3])->select(); ``` + 查看执行的SQL ``` self::whereIn('id', '1,2,3')->fetchSql(true)->select(); ``` + 执行的SQL ``` SELECT * FROM `user` WHERE `id` IN (1,2,3) ```