JOIN三个表格

表格一

表格二

表格三

SQL语句为

SELECT * FROM
movie  JOIN casting ON movie.id=casting.movieid
       JOIN actor ON casting.actorid=actor.id(要注意join 的格式)

最终结果展示在最下面

 

idtitleyrdirectorbudgetgrossmovieidactoridordidname
1001710 Rillington Place1971184  100171873187John Hurt
1008644 Inch Chest20101016 247553100861873187John Hurt
10236A Man for All Seasons19662173  102361878187John Hurt
10522Alien197935111000000104931801105221875187John Hurt
11116Before Winter Comes1969219  111161874187John Hurt
12128Contact1997159790000000171120329121281876187John Hurt
12395Dead Man199511141  123951875187John Hurt
12628Dogville200471251000000016680836126281879187John Hurt
12954Even Cowgirls Get the Blues19941995080000001708873129541876187John Hurt
13824Harry Potter and the Deathly Hallows – Part 12010238012500000009563997111382418713187John Hurt
13825Harry Potter and the Deathly Hallows – Part 2201123801250000000 138251879187John Hurt
13829Harry Potter and the Philosopher's Stone20014359 9747553711382918712187John Hurt
13881Heaven's Gate198017700 3484331138811875187John Hurt
13909Hellboy200410771  139091877187John Hurt
13910Hellboy II: The Golden Army20081077185000000160388063139101877187John Hurt
14296Immortals20112558975000000196196342142961878187John Hurt
14354Indiana Jones and the Kingdom of the Crystal Skull20081375185000000786636033143541876187John Hurt
15225Lost Souls2000289275000000031355910152251875187John Hurt
15242Love and Death on Long Island199829037  152421871187John Hurt
15539Melancholia2011712552500000 155391876187John Hurt
15591Midnight Express19786658  155911873187John Hurt
16057Nineteen Eighty-Four198425539 8430492160571871187John Hurt
16333Outlander200831841470000007033683163331875187John Hurt
16400Partners198232852  164001872187John Hurt
16989Rob Roy199591022800000031596911169891873187John Hurt
17199Scandal19899102  171991871187John Hurt
17686Spaceballs19871081822700000381194831768618714187John Hurt
18467The Black Cauldron1985391342500000021288692184671875187John Hurt
18906The Elephant Man1980111725000000 189061872187John Hurt
19644The Limits of Control200911141 1395030196441877187John Hurt
19702J.R.R. Tolkien's The Lord of the Rings19786089400000030471420197021873187John Hurt
20140The Plague Dogs198243502  201401871187John Hurt
20449The Shout197817476  204491872187John Hurt
20477The Skeleton Key2005853143000000 204771874187John Hurt
21056Thumbelina199435002800000011373501210561878187John Hurt
21093Tinker Tailor Soldier Spy2011458372100000027027752210931874187John Hurt
21437V for Vendetta20063182454000000132511035214371875187John Hurt
21445Valiant2005467253500000061746888214451875187John Hurt
21598Watership Down1978435023838808 215981871187John Hurt
21744White Mischief198725539  217441875187John Hurt
21795Wild Bill19951037  217951873187John Hurt

 

转载于:https://www.cnblogs.com/shareidea94/p/10852377.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/569444.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

深度学习入门|第5章 误差反向传播法(二)

误差反向传播法 前言 此为本人学习《深度学习入门》的学习笔记 四、简单层的实现 本节将用 Python 实现前面的购买苹果的例子。这里,我们把要实现的计算图的乘法节点称为“乘法层”(MulLayer),加法节点称为“加法层”(…

内容样式行为分离

CSS负责HTML:人类选不中;js取不到 CSS负责JS: 如果逻辑复杂,CSS会变慢,页面会变慢

CSS图片布局 flex(竖着的几张图片改为一排)

<style>.images{display: flex;align-items: flex-start;//border: 1px solid red; 有可能边框包不住这几张图片&#xff0c;但如果窗口够大&#xff0c;也可以包住//overflow: hidden; 如果写了&#xff0c;超出边框的部分会被隐藏 } </style> 布局有两种方式&a…

牡丹-曹州牡丹:曹州牡丹

ylbtech-牡丹-曹州牡丹&#xff1a;曹州牡丹菏泽牡丹&#xff0c;山东省菏泽市特产&#xff0c;中国国家地理标志产品。牡丹&#xff0c;原产中国西北部&#xff0c;秦岭和陕北山地多野生&#xff0c;栽培历史悠久&#xff0c;南北朝时已声成为观赏植物。菏泽&#xff0c;古称曹…

idea报错:Error: java: 错误: 不支持发行版本 5

我在测试类运行时&#xff0c;出现下述错误&#xff1a; 可能原因&#xff1a;java版本不一致项目编译配置使用的java版本不对 解决方案&#xff1a; 第一步&#xff1a;file---Project Structure-- Project&#xff08;两版本改为一致&#xff1a;第二、三个横框中数字都为11…

python网络爬虫基础day01

2019.5.13&#xff0c;今天在“小猿圈”跟着波波老师学习了爬虫开发的第一章和第二章&#xff0c;总结下今天学的知识&#xff1a; 爬虫基础介绍&#xff1a;   什么是爬虫&#xff1f;    - 通过编写程序&#xff0c;模拟浏览器上网&#xff0c;然后让其去互联网上抓取数…

忘记mysql数据库连接密码

本次操作所有需要用到的密令行&#xff1a; bin>net stop mysql bin>mysqld --skip-grant-tables bin>mysql mysql>use mysql mysql>update user set passwordpassword("123456") where user"root"; mysql>flush privileges; mys…

Python 基础 函数

1&#xff1a;调用函数 eg&#xff1a;调用内置函数 abs() 求绝对值 2&#xff1a;定义函数 1&#xff1a;定义一个函数要使用 def 语句&#xff0c;依次写出函数名、括号、括号中的参数和冒号:&#xff0c;然后&#xff0c;在缩进块中编写函数体&#xff0c;函数的返回值用ret…

Springmvc跨服务器文件上传报403,409错误

报403错误 Tomcat默认只读模式&#xff0c;传图片会被拒绝 解决&#xff1a;找到 Tomcat 目录---conf下---web.xml&#xff0c;打开 加入 <init-param><param-name>readonly</param-name><param-value>false</param-value> </init-param&g…

Vue中message.split().reverse().join()函数用法

1、split() 把一个字符串分割成字符串数组 把数据拆分为一个数组,括号里的 是把数据拆分为每个字符串 2、reverse() 颠倒数组中元素的顺序 只作用于数组&#xff0c;跟在split()后才能起作用&#xff0c;在一个字符串后面不起作用&#xff0c;如message.reverse() 3、join()…

单元测试——Winfrom

一、新建单元测试项目 二、单元测试可在Service或者Repository层分别创建 三、编写好代码后可运行单元测试 转载于:https://www.cnblogs.com/772933011qq/p/10863817.html

vue报错:dependencies were not found: * element-ui in ./src/main.js * element-ui/lib/theme-chalk/inde

报错信息 These dependencies were not found: * element-ui in ./src/main.js * element-ui/lib/theme-chalk/index.css in ./src/main.js 解决方案 1、 cmd进入命令行窗口&#xff0c;切入运行的项目文件夹下 2、输入 cnpm i element-ui -S(没有装淘宝镜像的使用 npm i…

Spring的配置与使用

一、Spring的组成 其中最核心的是Core Container核心容器 二、spring框架的作用&#xff1a; 对于我目前了解的spring框架&#xff0c;其中一个作用是用来降低程序间的耦合度的&#xff0c;也就是降低程序间的依耐性。 IOC&#xff1a;inversion of control 控制反转-->即将…

选择日期保存报错Invalid JSON input: Cannot deserialize value of type `java.util.Date` from String......

(spring boot vue&#xff09; 1、新增-选择日期-点击保存-报错&#xff1a;报错信息 "Invalid JSON input: Cannot deserialize value of type java.util.Date from String "2020-07-05T16:00:00.000Z": not a valid representation (error: Failed to pars…

个人冲刺10

1.昨天做了界面整体优化。 2.今天打算了解一下组成员的情况。 3.整体界面优化没有什么问题。转载于:https://www.cnblogs.com/Evak/p/10936847.html

新增或编辑保存时出错后,页面无法再次编辑

新增或编辑保存时出错后&#xff0c;页面无法再次编辑&#xff0c;除非关闭新增或编辑弹窗&#xff0c;重新打开新增或编辑页面&#xff0c;否则无法编辑 &#xff0c;如下图&#xff1a; 解决方案 在新增方法之前定义loading参数&#xff0c;在调用后台服务之前先使用loading…

avue下拉框中属性可以显示,但不能选中

1、avue下拉框中属性可以显示&#xff0c;但不能选中 追其原因&#xff0c;我对表单分组了&#xff0c;下拉框放在了group组内的column组里面&#xff0c;导致层数过多&#xff0c;产生死循环的bug 2、解决方法&#xff1a; 取消分组&#xff0c;把所有的属性放到column属性里…

1-4 无监督学习(Unsupervised Learning)

无监督学习定义&#xff1a; 【无监督学习】中没有任何的标签或者是有相同的标签或者就是没标签。所以我们已知数据集&#xff0c;却不知如何处理&#xff0c;也未告知每个数据点是什么。别的都不知道&#xff0c;就是一个数据集。你能从数据中找到某种结构吗&#xff1f;针对数…

选择日期保存后日期变成前一天(avue date)

1、问题&#xff1a;选中日期&#xff0c;保存&#xff0c;日期变成前一天 {label: 生产日期,prop: esDate,type: date,}, 2、解决&#xff1a;&#xff08;avue的官方文档&#xff09; {label: 生产日期,prop: esDate,type: date,valueFormat: yyyy-MM-dd}, 只需要加 value…

IDEA配置tomcat部署web项目时没有artifacts

重命名module可能会出现此问题 会有提示没有artifacts&#xff0c;点击Fix&#xff0c;添加artifacts以解决 debug运行可能会报错&#xff0c;查看日志说1099端口号已被使用 命令行&#xff1a; netstat -ano | find "1099" tasklist | find "840" 840是LI…