我通常通過看例子和反向工作來學習。基本內連接 - 瞭解
有人可以幫助我寫出這個查詢:
https://www.sqlteaching.com/#!multiple_joins
這是我寫的,我不知道我做錯了:
SELECT character.name, actor.name
FROM character
INNER JOIN character_tv_show
ON character.id = character_tv_show.character_id
INNER JOIN character_actor
ON actor.id = character_actor.actor_id;
想通了: SELECT character.name,actor.name FROM字符 INNER JOIN character_actor ON character.id = character_actor.character_id INNER JOIN演員 ON character_actor.actor_id = actor.id; – Sam