我有 3 张桌子:
电影数据库
movieID | Title
1 | Star War
StarringDB
movie ID | nameID
1 | 1
1 | 2
1 | 3
1 | 4
1 | 5
名称数据库
nameID | Name
1 | Harrison Ford
2 | Mark Hamill
3 | Carrie Fisher
4 | Peter Cushing
5 | Alec Guinness
我希望输出是:
ID | Title | Starrings
1 | Star War | Harrison Ford, Mark Hamill, Carrie Fisher, Peter Cushing, Alec Guinness