Mysql
 sql >> Database >  >> RDS >> Mysql

Laravel 4:Dove non esiste

Qualcosa come

A::whereNotExists(function($query)
            {
                $query->select(DB::raw(1))
                      ->from('B')
                      ->whereRaw('A.id = B.id');
            })
            ->get();