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

织梦快速做双语网站公司名怎么取名比较旺

织梦快速做双语网站,公司名怎么取名比较旺,服务器租用多少钱一台,抖音小程序定制开发标量子查询 #标量子查询 #1.查询“研发部”的所有员工信息 # a.查询“研发部”部门id select id from dept where name研发部;#b.根据销售部部门id,查询员工信息 select * from emp where dept_id(select id from dept where name研发部);#2.查询在王金彪入职之后…

标量子查询

#标量子查询
#1.查询“研发部”的所有员工信息
# a.查询“研发部”部门id
select  id from dept where name='研发部';#b.根据销售部部门id,查询员工信息
select * from emp where dept_id=(select  id from dept where name='研发部');#2.查询在王金彪入职之后的员工信息select enterdata from  emp where name ='王金彪';select * from  emp where enterdata>(
select enterdata from  emp where name ='王金彪');

列子查询

就像这种,单列多行

#列子查询
#1.查询研发部和市场部所有员工信息
#a查询研发部和市场部的ID
select id from dept where name ='研发部'or name='市场部';# b 根据部门id 查询员工信息
select * from emp where dept_id in (1,2);select * from emp where dept_id in (select id from dept where name ='研发部'or name='市场部');#2.查询比市场部所有人工资都高的员工信息
#a .查询所有市场部 人员工资
select id from dept where name ='市场部';select salary from  emp where dept_id=(select id from dept where name ='市场部');select * from emp  where salary>all (select salary from  emp where dept_id=(select id from dept where name ='市场部'));#3.查询比总经办其中任意一人工资高的员工信息
#a.查询总经办所有人工资
select id from  dept where name ='总经办';
select salary from emp where dept_id=(select id from  dept where name ='总经办');select * from emp where salary> any(select salary from emp where dept_id=(select id from  dept where name ='总经办'));

行子查询

子查询返回的结果是一行(可以是多列),这种子查询称为行子查询

表子查询

表子查询是 SQL 中强大的查询工具,它允许将一个查询的结果作为另一个查询的数据源,适用于复杂数据关联和过滤场景。

#表子查询
#1.查询与“金钰”和“陈秋婷”的年龄和职位相同的员工信息
#a.查询“金钰”和“陈秋婷”的年龄和职位
select age,job from emp where name='金钰'or name ='张若涵';
select * from emp where (age,job) in (select age,job from emp where name='金钰'or name ='张若涵');
#这里面中的(age,job),只要满足这两个中的一个就行了

​
#2.查询入职时期是2000-01-01之后的员工信息,及部门信息
#a- 入职日期是2000-01-01之后的员工信息
select * from emp where enterdata>'2000-01-01';#b-查询这部分员工,对应的部门信息:
select * from (select * from emp where enterdata>'2000-01-01') e left join dept d on e.dept_id=d.id;​

将查询出来的表直接用来使用。


文章转载自:

http://ZrU1KYD0.fjtnh.cn
http://lT9EMECd.fjtnh.cn
http://iRCwtY6E.fjtnh.cn
http://HvKdpBbV.fjtnh.cn
http://GnrSO4nN.fjtnh.cn
http://IeJsK0Eh.fjtnh.cn
http://iOPC0D6M.fjtnh.cn
http://D5iOnnMP.fjtnh.cn
http://jusOauWE.fjtnh.cn
http://yJyVrHI5.fjtnh.cn
http://BALubohT.fjtnh.cn
http://Ixsn6kYb.fjtnh.cn
http://hPKsIROK.fjtnh.cn
http://eNgwqvYb.fjtnh.cn
http://AiIvzxG1.fjtnh.cn
http://3K5DKrbv.fjtnh.cn
http://c4N1THLr.fjtnh.cn
http://r7tRL9rT.fjtnh.cn
http://yh937K1w.fjtnh.cn
http://FosM0bSd.fjtnh.cn
http://7OUL7ueh.fjtnh.cn
http://WBBB8fIW.fjtnh.cn
http://NgiP8z5U.fjtnh.cn
http://E5jLD8ac.fjtnh.cn
http://YYtfnk0g.fjtnh.cn
http://Fp8eWY0P.fjtnh.cn
http://E8evl4Xe.fjtnh.cn
http://uAWYdlwA.fjtnh.cn
http://bHtZvbUK.fjtnh.cn
http://CTQ2H1Qc.fjtnh.cn
http://www.dtcms.com/wzjs/768170.html

相关文章:

  • 珠海seo海网站建设深圳优化seo排名
  • 网站建设管理工作经验介绍wordpress国外主题 雅黑
  • 社科联网站建设网站开发软件中文版
  • 无锡模板建站wordpress 移动端网页
  • 免费中文网站模板html江西网站建设技术
  • 做减肥餐的网站wordpress连连支付
  • thinkphp 微网站开发洛阳新光建站系统
  • 自己怎么在网上做网站招生网站转换率低
  • 珠海网站建设哪家权威计算机前端开发就业方向
  • 开发一个网站的过程是什么网站百度收录怎么做
  • 网络营销怎么做网站儿童才艺网站建设模板
  • 网站制作公司下逻辑网络设计报告
  • iis停止单个网站苏州推广有限公司
  • 知名高端网站建设深圳宝安区有几个镇
  • 注册网站账号违法吗百度宿迁市建设局网站
  • 个人开网站深圳网站制作的公司有哪些
  • 深圳南山区网站建设公司安装wordpress导入工具
  • php语言 电商网站建设安徽省建设工程信息网站进不了
  • 沈阳网站开发招聘提高怎样做网站的外链
  • 南京企业网站开发费用申请网站优化搜索排名
  • 交互网站设计wordpress 询价按钮
  • 揭阳网站建设公司哪个好模版网站建设步骤详解
  • 诚信企业品牌网站建设wordpress获取指定分类的图像描述
  • 网站建设专业用语wordpress 4 安装
  • 网站开发有什么好的论坛修改公司网站网页
  • 资源下载网站建设制作网站联系方式
  • 网站开发职业访谈百度seo公司哪家最好
  • 搭建网站架构是什么意思手机如何制作网页
  • 旅游网站模板免费下载网站模糊设计
  • 全国网站制作前十名国企设计公司有哪些