Oracle_071_lesson_p9
发表于:2024-10-21 作者:千家信息网编辑
千家信息网最后更新 2024年10月21日,集合操作UNION 及 UNION ALLUNION :列名,数据类型要一致,结果会默认ASC自动排序UNION ALL :结果不会去重,不排序,其他和UNION一样用类似to_char(null),
千家信息网最后更新 2024年10月21日Oracle_071_lesson_p9
集合操作
UNION 及 UNION ALL
UNION :列名,数据类型要一致,结果会默认ASC自动排序
UNION ALL :结果不会去重,不排序,其他和UNION一样
用类似to_char(null), to_number(null), to_date(null) 来填充缺列的情况;
如:
select job_id
from employees
UNION
select job_id
from retired_employees
如:
select job_id,department_id
from employees
UNION ALL
select job_id,department_id
from retired_employees
order by job_id;
intersect 取交集
结果会排序,会去重
如:
select manager_id,department_id
from employees
INTERSECT
select manager_id,department_id
from retired_employees;
MINUS 前select的结果减去和后select的去重复的结果
如:
select employee_id, job_id
from employees
where department_id=80
MINUS
select employee_id, job_id
from retired_employees
where department_id=90
以上4种输出结果都只关心第1条select的定义
order by 只能放在最后,且只能出现1次,且不能放在子查询里。
parenthes 括号可以更改执行优先级。
结果
排序
一致
交集
优先级
情况
括号
数据
类型
查询
输出
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
梦幻西游服务器转入山东云服务器
数据库添加删除修改操作
香港独立服务器哪家好
我的世界服务器ost
松江区网络技术咨询
与服务器同步失败
服务器端下载
数据库如何保证并发安全
南京app软件开发工程师
金山区推广软件开发信息中心
中国邮政软件开发
服务器7944QB8
网络安全培训企业
共建共享网络安全论文
怎样注册互联网科技公司
软通网络安全A
服务器硬盘坏3块
怎么在神武四里面找服务器
嘉兴无风扇工控机服务器
新家坡网络安全类薪酬
数据库平方根函数
进入网络安全模式密码错误
网络安全等级制度发展趋势
政务信息网络安全工作
数据库教程美食推荐
怎样给方舟上服务器管理
华为安全网络安全主管应聘
网络安全创意图画
网络安全的特点正确的是
女人做数据库运维还是web