简体   繁体   中英

MySQL syntax error on inner join and AND value IN (Query)

I am getting a syntax error with the code below and I can't pinpoint what's wrong.

    SELECT contrat.nomPrenom
    FROM contrat
    WHERE Type_emploi LIKE 'Acteur'
    INNER JOIN film 
    ON contrat.ID_film = film.ID_film
    AND film.Note IN (
      SELECT Note 
      FROM film
      ORDER BY Note
      DESC
      LIMIT 1
    )
WHERE Type_emploi LIKE 'Acteur' INNER JOIN film

错误在这里:您必须在使用WHERE子句之前使用INNER JOIN

在 where 子句之前尝试内部联接

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM