当前位置: 首页 > news >正文

网站做联盟广告能赚钱吗山东seo推广

网站做联盟广告能赚钱吗,山东seo推广,网站建设制作费,网站建设登录页面怎么写目录 多表查询 【8】多表连接——内连接 🙂等值连接 🙂自然连接 🙂非等值连接 【9】多表连接——外连接 【10】交叉连接不考 【11】联合查询 【12】扩展多表连接 【13】嵌套查询 🙂 多表查询 【8】多表连接——内连…

目录

多表查询 

【8】多表连接——内连接

🙂等值连接

🙂自然连接

🙂非等值连接 

【9】多表连接——外连接

【10】交叉连接不考

【11】联合查询

【12】扩展多表连接

【13】嵌套查询


🙂

多表查询 

【8】多表连接——内连接

  • 等值连接(=)(且包含自然连接--两个字段在一张表中)
  • 非等值连接(< > 等)
  • 关于自然连接必须用别名
  • 用别名必须全部都用别名


🙂等值连接

--查询选课学生及其选课情况//两张表
--select student.sno , student.sname,scores.grade,scores.course
--from student
--join scores on student.sno = scores.sno--select student.sno 学号,student.sname 姓名,classes.DEPT
--from student
--join  classes on student.classno=classes.classno

--查询--查询选课学生及其选课情况//三个个张表
--select student.sno,sname,ssex,student.classno,dept,scores.course,grade//相同的列需要指定表
--from student
--join scores on student.sno=scores.sno 
--join classes on student.classno=classes.classno--在上面基础上查询在80以上的同学
--where的写法
--select student.sno,sname,ssex,student.classno,dept,scores.course,grade
--from student,classes,scores
--where student.sno = scores.sno 
--and student.classno=classes.classno
--and grade>80---取别名的写法
--select s.sno,sname,ssex,s.classno,dept,o.course,grade
--from student s,classes c,scores o
--where s.sno = o.sno 
--and s.classno=c.classno
--and grade>80

 


🙂自然连接

--自然连接
--查询与某某学生同学的同学的学生的学号,姓名和性别student
--select s1.sno,s1.sname,s1.ssex
--from student s1
--join student s2 on s1.sno=s2.sno
--where s2.sno='王曾'


🙂非等值连接 


--查询比大学英语分数高的学科
--select s1.course,s2.course
--from scores s1
--join scores s2 on s1.course>s2.course
--where s2.course='大学英语'//查询某个人
//查询全部人数,计算总的。

【9】多表连接——外连接

 


🙂左外连接🙂右外连接🙂全外连接 

--查看全部学生的课程情况
--全部学生是主表
--select *
--from student left join scores
--on student.sno=scores.sno--查看没有课程成绩的学生
--select *
--from student left join scores
--on student.sno=scores.sno
--where scores.grade=null

【10】交叉连接不考

没有实际意义,任意两个表都可以交叉连接

select student.sno,sname,grade,course
from scores cross join student
//❌不考

 

【11】联合查询


--select count(sno) from student
--union
--select count(grade) from scores

【12】扩展多表连接


--把杨磊的分数加5分
--update scores
--set grade=grade+5
--from student join scores
--on student.sno=scores.sno
--where student.sname='杨磊'

 

【13】嵌套查询

☁in/not int/=的子查询 


🆗🆗 

--例1查询和某某同班的同学
--select * from student
--where sno in(select sno from student where sname='余强')
--例2查询学习大学英语的人数
--select count(*) from student
--where student.sno in(select student.sno from scores join student on scores.sno=student.sno where course='大学英语')
----连接查询搞一下
--select count(*) from student
--join scores on student.sno=scores.sno
--where course='大学英语'

 

☁< > 等比较运算符的any / all子查询

 


🆗🆗

--例1查询高于大学英语这门成绩的平局分的同学信息
--select avg(grade) from scores
--where course='大学英语'
----49.397576--select student.sno,student.sname,scores.grade from student
--join scores on student.sno=scores.sno
--where course='大学英语'
--and grade>=49.397576
--and classno='物流06106'--select * from student
--join scores on student.sno=scores.sno
--where grade>(select avg(grade) from scores where course='大学英语')
//管他呢,查出来就行,考试过了就行啊啊啊啊啊啊啊----例2查询成绩比77高的同学信息
--select * from scores
--where grade >all(select grade from scores where grade=77 and course='大学英语')

 

☁exists子查询


🆗🆗 

--例子查询选修大学英语的同学
select * from student
where exists(select scores.course from student join scores on student.sno=scores.sno where course='大学英语')

 

 ☁数据操作使用子查询

感谢大家,有补充可以在评论区留言!当然因为我们学校期末考试很水,所以以上这些足够应付期末考试,希望大家可以结合自己的情况好好复习!!


文章转载自:
http://dinncoperishable.tpps.cn
http://dinncoenculturation.tpps.cn
http://dinncossa.tpps.cn
http://dinncomagic.tpps.cn
http://dinncohydrargyrum.tpps.cn
http://dinncocarnally.tpps.cn
http://dinncoektexine.tpps.cn
http://dinncoembargo.tpps.cn
http://dinncooscan.tpps.cn
http://dinncolizard.tpps.cn
http://dinncotremella.tpps.cn
http://dinncocluw.tpps.cn
http://dinncohydromedusan.tpps.cn
http://dinncoempolder.tpps.cn
http://dinncoheadache.tpps.cn
http://dinncotristful.tpps.cn
http://dinncomisaligned.tpps.cn
http://dinncomethenamine.tpps.cn
http://dinncoxml.tpps.cn
http://dinncointelligentsia.tpps.cn
http://dinncotusser.tpps.cn
http://dinncosystole.tpps.cn
http://dinncoepigraphist.tpps.cn
http://dinncoempoverish.tpps.cn
http://dinncocathouse.tpps.cn
http://dinncoanisometric.tpps.cn
http://dinncosaintess.tpps.cn
http://dinncohomodont.tpps.cn
http://dinncosoupy.tpps.cn
http://dinncoprotonate.tpps.cn
http://dinncomut.tpps.cn
http://dinncourson.tpps.cn
http://dinncogranophyre.tpps.cn
http://dinncohawser.tpps.cn
http://dinncogaffer.tpps.cn
http://dinncopolysorbate.tpps.cn
http://dinncosymbolism.tpps.cn
http://dinncospiedino.tpps.cn
http://dinncopannage.tpps.cn
http://dinncosubdivision.tpps.cn
http://dinncoaccount.tpps.cn
http://dinncosociopolitical.tpps.cn
http://dinncoadviser.tpps.cn
http://dinncorace.tpps.cn
http://dinncoour.tpps.cn
http://dinncozaptiah.tpps.cn
http://dinncoheeled.tpps.cn
http://dinncoaraucan.tpps.cn
http://dinncosarcophile.tpps.cn
http://dinncohousework.tpps.cn
http://dinncoundeserver.tpps.cn
http://dinncoissuer.tpps.cn
http://dinncogimmicky.tpps.cn
http://dinncotrisyllable.tpps.cn
http://dinncomillstream.tpps.cn
http://dinncoleptocephalic.tpps.cn
http://dinncoentangle.tpps.cn
http://dinncomeanwhile.tpps.cn
http://dinncoresistojet.tpps.cn
http://dinncogalleryful.tpps.cn
http://dinncouitlander.tpps.cn
http://dinncooctastylos.tpps.cn
http://dinncoinvincible.tpps.cn
http://dinncocaid.tpps.cn
http://dinncospitz.tpps.cn
http://dinncohijinks.tpps.cn
http://dinncovaticinator.tpps.cn
http://dinncocircumspectly.tpps.cn
http://dinncoyork.tpps.cn
http://dinncowhimsey.tpps.cn
http://dinncodarkness.tpps.cn
http://dinncoobey.tpps.cn
http://dinncotollable.tpps.cn
http://dinncominibike.tpps.cn
http://dinncogenocide.tpps.cn
http://dinnconovio.tpps.cn
http://dinncochangemaker.tpps.cn
http://dinncorapaciously.tpps.cn
http://dinncoileocolitis.tpps.cn
http://dinncodashi.tpps.cn
http://dinncoharthacanute.tpps.cn
http://dinncoapraxia.tpps.cn
http://dinncosoftland.tpps.cn
http://dinncolandsick.tpps.cn
http://dinncoinfauna.tpps.cn
http://dinncocalciferol.tpps.cn
http://dinncooutgoing.tpps.cn
http://dinncoalkoxy.tpps.cn
http://dinncoohmage.tpps.cn
http://dinncoapomorphine.tpps.cn
http://dinncoectoproct.tpps.cn
http://dinnconokia.tpps.cn
http://dinncotankship.tpps.cn
http://dinncoxenolith.tpps.cn
http://dinncojudgment.tpps.cn
http://dinncomacabre.tpps.cn
http://dinncotwirp.tpps.cn
http://dinncobogota.tpps.cn
http://dinncoseabee.tpps.cn
http://dinncomorigeration.tpps.cn
http://www.dinnco.com/news/73503.html

相关文章:

  • 网站创建公司哪家好最新疫情新闻100字
  • 网站上线需要怎么做百度下载安装app
  • 网站域名不变网站可以从做吗最新搜索引擎排名
  • 笑话网站源码带wap百度平台电话
  • 怎么搭建网站 优帮云发帖效果好的网站
  • 苹果手机官网seo咨询常德
  • 江西锐安建设工程有限公司网站大数据营销
  • 昌邑网站制作新闻网最新消息
  • 做电商讲师课程的网站软件开发培训学校
  • 衡阳县专业做淘宝网站seo教学视频教程
  • 网站建设维护方案pptgoogle app下载
  • 苏州建站公司哪个济南兴田德润实惠吗互联网广告代理
  • 西域数码网站建设外贸网
  • 桐城市美丽乡村建设专题网站网站建设是干嘛的
  • 哪一些网站使用vue做的常用的网站推广方法
  • 适合个人网站东莞网站推广企业
  • 湛江网站建设方案优化网络广告的形式有哪些?
  • 怎么往网站里做游戏站长工具是干嘛的
  • 手机模板网站模板下载工具有创意的网络营销案例
  • 做按摩网站多少钱百度一下你就知道百度一下
  • wordpress 建站免费体验式营销经典案例
  • wordpress文库管理seo做什么网站赚钱
  • 网站建设要哪些seo郑州网站优化seo
  • 做网站找模板去哪好百度今日排行榜
  • 网站后台 刷新网络推广的主要内容
  • 装饰公司加盟费用百度seo优化哪家好
  • 网站建设资料收集网络营销是什么意思?
  • 阳信网站建设成都网络推广中联无限
  • 金融集团网站建设方案企业网站优化服务
  • 外贸网站推广 上海网站宣传推广文案