当前位置:网站首页>MySQL winter vacation self-study 2022 11 (8)
MySQL winter vacation self-study 2022 11 (8)
2022-07-06 02:25:00 【Crane paper thousand】
-- Query whether the company has more than 60 Year old employees , Output if there is
select * from emp3 where exists(select * from emp3 where age > 60);# Wrong writing , Output for the whole table
select * from emp3 a where exists(select * from emp3 b where a.age > 60);
select * from emp3 where eid in (select eid from emp3 where age > 60);# use in To achieve
-- Query the employee information of the Department
select * from emp3 a where exists (select * from dept3 b where a.dept_id = b.deptno);
select * from emp3 a where dept_id in(select deptno from dept3 );# use in To achieve
Be careful exists Efficiency currency of in high
边栏推荐
- Building the prototype of library functions -- refer to the manual of wildfire
- Global and Chinese markets hitting traffic doors 2022-2028: Research Report on technology, participants, trends, market size and share
- Campus second-hand transaction based on wechat applet
- 有沒有sqlcdc監控多張錶 再關聯後 sink到另外一張錶的案例啊?全部在 mysql中操作
- Ue4- how to make a simple TPS role (II) - realize the basic movement of the role
- Online reservation system of sports venues based on PHP
- Using SA token to solve websocket handshake authentication
- Global and Chinese markets of general purpose centrifuges 2022-2028: Research Report on technology, participants, trends, market size and share
- 剑指 Offer 29. 顺时针打印矩阵
- 机器学习训练与参数优化的一般过程 (讨论)
猜你喜欢
Minecraft 1.18.1、1.18.2模组开发 22.狙击枪(Sniper Rifle)
HttpRunnerManager安装(三)-Linux下配置myql数据库&初始化数据
Know MySQL database
Sword finger offer 29 Print matrix clockwise
MySQL index
论文笔记: 图神经网络 GAT
【社区人物志】专访马龙伟:轮子不好用,那就自己造!
Reset nodejs of the system
High number_ Vector algebra_ Unit vector_ Angle between vector and coordinate axis
Prepare for the autumn face-to-face test questions
随机推荐
Is there a case where sqlcdc monitors multiple tables and then associates them to sink to another table? All operations in MySQL
[coppeliasim] 6-DOF path planning
Minecraft 1.18.1、1.18.2模组开发 22.狙击枪(Sniper Rifle)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
好用的 JS 脚本
Multiple solutions to one problem, asp Net core application startup initialization n schemes [Part 1]
Zero basic self-study STM32 wildfire review of GPIO use absolute address to operate GPIO
在线怎么生成富文本
MySQL (IV) - transactions
General process of machine learning training and parameter optimization (discussion)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]
高数_向量代数_单位向量_向量与坐标轴的夹角
[eight part essay] what is the difference between unrepeatable reading and unreal reading?
How to improve the level of pinduoduo store? Dianyingtong came to tell you
Prepare for the autumn face-to-face test questions
更改对象属性的方法
Online reservation system of sports venues based on PHP
Global and Chinese markets of nasal oxygen tubes 2022-2028: Research Report on technology, participants, trends, market size and share
我把驱动换成了5.1.35,但是还是一样的错误,我现在是能连成功,但是我每做一次sql操作都会报这个