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安全错误
数据库的锁怎样保障安全
camds数据库系统
079冒险岛数据库
dell模块化服务器
数据库添加错误5120
医院分布式数据库
万优互联网科技有限公司
携程机票用什么数据库
隆回警方维护网络安全再添战果
服务器安全检测器
软件开发业务怎么申请免税
泰兴多功能网络技术
如何定位数据库缺少索引
惠普服务器做系统找不到硬盘
网络安全国家安全等级分级标准
双线服务器架设
神佑释放服务器怎么换
数据库修改多行数据
服务器断电中断恢复命令
软件开发项目示例大全
文摘索引型数据库有哪些
网络安全生产月的开始
汉中软件开发平台
高清壁纸软件开发
网络安全设备阀丝
网络安全产品自主研发认证
南京木泉网络技术有限公司
强化学校网络安全建设
千兆网络技术是指
软件开发的规则
植物信息数据库的建设