#进阶9:结合查询 /* union 结合 合并:将多条查询语句的成果合并成一个成果 语法: 查询语句1 union 查询语句2 union..... 运用处景:要查询的成果来自于多个表,且多个表没有直接的衔接关系,但查询的信息一致时 特色: (1)请求多条查询语句的查询列数是一致的 (2)请求多条查询语句的查询的每列的类型和次序最好一致 */ #引入的案例:查询部门编号>90或邮箱包括a的员工信息 select * from employees where department_id>90 or email like "%a%"; 用union select * from employees where department_id>90 union select * from employees where email like "%a%"; #进阶9:结合查询 /* union 结合 合并:将多条查询语句的成果合并成一个成果 语法: