摘要: 联合查询 关键词:union 联合,合并;将多条查询语句的结果合并成一个结果 语法:查询语句1 union 查询语句2 union...... 应用场景:要查询的结果来自于多个表 且 多个表没有直接的连接关系,但查询的信息一致时 案例:查询部门编号>90号或邮箱中包含a的员工信息 ①:以前的方式 s 阅读全文
posted @ 2020-04-14 17:07 白云~ 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #1.查询工资最低的员工信息:last_name,salary select last_name,salary from employees where salary is not null order by salary limit 1; 或 select last_name, salary fr 阅读全文
posted @ 2020-04-14 15:45 白云~ 阅读(108) 评论(0) 推荐(0) 编辑