我遇到一个SQL查询问题。
所以我有两张桌子: Animelist + Animeepisode,我想从animelist获取最后8行与最后的animeepisodes一起加入。到目前为止,我有这样的事情:
SELECT MAX(a.id) AS id, a.id_anime AS id_anime, a.nazev AS nazev, b.nazev AS nazev_anime, b.id AS idd
FROM animedily AS a
INNER JOIN animelist AS b ON a.id_anime = b.id
GROUP BY b.id
ORDER BY a.id DESC LIMIT 0,8
从动漫列表中给我最新的动漫(我正是我需要的:-)),但是每个第一集来自动漫节目(我需要最后一次:-p)
感谢您的帮助: - )