Mysql
 sql >> Base de données >  >> RDS >> Mysql

utiliser where et inner join dans mysql

    SELECT `locations`.`name`
      FROM `locations`
INNER JOIN `school_locations`
        ON `locations`.`id` = `school_locations`.`location_id`
INNER JOIN `schools`
        ON `school_locations`.`school_id` = `schools_id`
     WHERE `type` = 'coun';

le WHERE la clause doit être à la fin de l'instruction