0
我有2個表,要查詢所有與藝術家加入了專輯數據MySQL的加入就用WHERE
artists: artist_id | name
albums: album_id | artist_id | songs
這給了我只有第一排
SELECT * FROM albums JOIN artists ON artists.artist_id = albums.artist_id
我想指定專輯ID
SELECT * FROM albums
WHERE album_id = 101
JOIN artists ON artists.artist_id = albums.artist_id