laravel whereExists使用

whereExists 方法允许你使用 where exists SQL 语句。whereExists 方法接收一个 闭包 作为参数,该闭包获取一个查询构建器实例,从而允许你定义放置在 「exists」 字句中的查询: $users = DB::table('users') ->whereExist
posted @ 2023-01-07 13:51  pine007  阅读(671)  评论(0编辑  收藏  举报