表格一
表格二
表格三
SQL语句为
SELECT * FROM
movie JOIN casting ON movie.id=casting.movieid
JOIN actor ON casting.actorid=actor.id(要注意join 的格式)
最终结果展示在最下面
id | title | yr | director | budget | gross | movieid | actorid | ord | id | name |
---|---|---|---|---|---|---|---|---|---|---|
10017 | 10 Rillington Place | 1971 | 184 | 10017 | 187 | 3 | 187 | John Hurt | ||
10086 | 44 Inch Chest | 2010 | 1016 | 247553 | 10086 | 187 | 3 | 187 | John Hurt | |
10236 | A Man for All Seasons | 1966 | 2173 | 10236 | 187 | 8 | 187 | John Hurt | ||
10522 | Alien | 1979 | 351 | 11000000 | 104931801 | 10522 | 187 | 5 | 187 | John Hurt |
11116 | Before Winter Comes | 1969 | 219 | 11116 | 187 | 4 | 187 | John Hurt | ||
12128 | Contact | 1997 | 1597 | 90000000 | 171120329 | 12128 | 187 | 6 | 187 | John Hurt |
12395 | Dead Man | 1995 | 11141 | 12395 | 187 | 5 | 187 | John Hurt | ||
12628 | Dogville | 2004 | 7125 | 10000000 | 16680836 | 12628 | 187 | 9 | 187 | John Hurt |
12954 | Even Cowgirls Get the Blues | 1994 | 19950 | 8000000 | 1708873 | 12954 | 187 | 6 | 187 | John Hurt |
13824 | Harry Potter and the Deathly Hallows – Part 1 | 2010 | 23801 | 250000000 | 956399711 | 13824 | 187 | 13 | 187 | John Hurt |
13825 | Harry Potter and the Deathly Hallows – Part 2 | 2011 | 23801 | 250000000 | 13825 | 187 | 9 | 187 | John Hurt | |
13829 | Harry Potter and the Philosopher's Stone | 2001 | 4359 | 974755371 | 13829 | 187 | 12 | 187 | John Hurt | |
13881 | Heaven's Gate | 1980 | 17700 | 3484331 | 13881 | 187 | 5 | 187 | John Hurt | |
13909 | Hellboy | 2004 | 10771 | 13909 | 187 | 7 | 187 | John Hurt | ||
13910 | Hellboy II: The Golden Army | 2008 | 10771 | 85000000 | 160388063 | 13910 | 187 | 7 | 187 | John Hurt |
14296 | Immortals | 2011 | 25589 | 75000000 | 196196342 | 14296 | 187 | 8 | 187 | John Hurt |
14354 | Indiana Jones and the Kingdom of the Crystal Skull | 2008 | 1375 | 185000000 | 786636033 | 14354 | 187 | 6 | 187 | John Hurt |
15225 | Lost Souls | 2000 | 28927 | 50000000 | 31355910 | 15225 | 187 | 5 | 187 | John Hurt |
15242 | Love and Death on Long Island | 1998 | 29037 | 15242 | 187 | 1 | 187 | John Hurt | ||
15539 | Melancholia | 2011 | 7125 | 52500000 | 15539 | 187 | 6 | 187 | John Hurt | |
15591 | Midnight Express | 1978 | 6658 | 15591 | 187 | 3 | 187 | John Hurt | ||
16057 | Nineteen Eighty-Four | 1984 | 25539 | 8430492 | 16057 | 187 | 1 | 187 | John Hurt | |
16333 | Outlander | 2008 | 31841 | 47000000 | 7033683 | 16333 | 187 | 5 | 187 | John Hurt |
16400 | Partners | 1982 | 32852 | 16400 | 187 | 2 | 187 | John Hurt | ||
16989 | Rob Roy | 1995 | 9102 | 28000000 | 31596911 | 16989 | 187 | 3 | 187 | John Hurt |
17199 | Scandal | 1989 | 9102 | 17199 | 187 | 1 | 187 | John Hurt | ||
17686 | Spaceballs | 1987 | 10818 | 22700000 | 38119483 | 17686 | 187 | 14 | 187 | John Hurt |
18467 | The Black Cauldron | 1985 | 39134 | 25000000 | 21288692 | 18467 | 187 | 5 | 187 | John Hurt |
18906 | The Elephant Man | 1980 | 11172 | 5000000 | 18906 | 187 | 2 | 187 | John Hurt | |
19644 | The Limits of Control | 2009 | 11141 | 1395030 | 19644 | 187 | 7 | 187 | John Hurt | |
19702 | J.R.R. Tolkien's The Lord of the Rings | 1978 | 6089 | 4000000 | 30471420 | 19702 | 187 | 3 | 187 | John Hurt |
20140 | The Plague Dogs | 1982 | 43502 | 20140 | 187 | 1 | 187 | John Hurt | ||
20449 | The Shout | 1978 | 17476 | 20449 | 187 | 2 | 187 | John Hurt | ||
20477 | The Skeleton Key | 2005 | 8531 | 43000000 | 20477 | 187 | 4 | 187 | John Hurt | |
21056 | Thumbelina | 1994 | 3500 | 28000000 | 11373501 | 21056 | 187 | 8 | 187 | John Hurt |
21093 | Tinker Tailor Soldier Spy | 2011 | 45837 | 21000000 | 27027752 | 21093 | 187 | 4 | 187 | John Hurt |
21437 | V for Vendetta | 2006 | 31824 | 54000000 | 132511035 | 21437 | 187 | 5 | 187 | John Hurt |
21445 | Valiant | 2005 | 46725 | 35000000 | 61746888 | 21445 | 187 | 5 | 187 | John Hurt |
21598 | Watership Down | 1978 | 43502 | 3838808 | 21598 | 187 | 1 | 187 | John Hurt | |
21744 | White Mischief | 1987 | 25539 | 21744 | 187 | 5 | 187 | John Hurt | ||
21795 | Wild Bill | 1995 | 1037 | 21795 | 187 | 3 | 187 | John Hurt |