Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Wie konvertiere ich mysql in laravel query builder

$results = DB::select(
    select * from pages where (phase_id, type) 
    in (
        select max(phase_id), type 
        from pages 
        where phase_id <= 2 
        and actived = 1 
        group by type
    ) 
    and actived = 1
);