这是一个合法的 MySql 查询吗?(更准确地说,是我加入 2 个表并添加 AND 条件的部分。)
LEFT JOIN release_artwork ON release_artwork.album_id = album.album_id AND release_artwork.position = 1
这是完整的查询:
SELECT album.album_id, album.title, country.country_id, artwork.thumb_filename, artwork.thumb_width, artwork.thumb_height
FROM song
JOIN album ON song.published_album = album.album_id
LEFT JOIN country ON album.country_id = country.country_id
LEFT JOIN release_artwork ON release_artwork.release_id = album.album_id AND release_artwork.position = 1
LEFT JOIN artwork ON artwork.artwork_id = release_artwork.artwork_id
WHERE song.song_id = 1
我可以AND
在加入 2 个表后立即添加吗?