当前位置:网站首页>HANA SQL 的Union和Union All
HANA SQL 的Union和Union All
2022-07-23 21:21:00 【xiaomici】
Union 搞的是啥?就是从两个(或者多个)相同的基表来的结果集给union到一起。但是重复行会被union给消除掉。
Union All的时候计算引擎后台的操作是用指针(我猜是指针)直接把两个基表给stack堆叠到一起,内存中的数据不移动。那就不消除重复行。
回过头来看,当你去union要消除重复行的话,重复行要先用排序啥的,那就免不了要把数据给实际的操作下。
所以说union all 比 union更快。
除了UNION和UNION ALL之外,HANA里面还有其他常用的操作符。
1. 一元二元操作符
一元: 增+ 减- 逻辑非NOT
二元:+ - * / 加减乘除 = != < > <= >= 比较 AND,OR 逻辑
2. 字符操作符
II
3. UNION/Union all / intersect/ except
union: 无重复结合两个或多个select语句
UNION all: 重复结合
intersect: 返回select语句中的相同行
except:除去第一个select中的由第二个select确定的值
边栏推荐
- [continuous update] collection of raspberry pie startup and failure series
- vite3学习记录
- Trial record of ModelBox end cloud collaborative AI development kit (rk3568) (II)
- [Yugong series] June 2022.Net architecture class 084- micro service topic ABP vNext micro service communication
- Chapter 2 Regression
- How to introduce your project experience in the interview
- LeetCode热题 HOT52-100
- 网络学习型红外模块,8路发射独立控制
- Cluster chat server: network module chatServer
- scala编程(中级进阶实验应用)
猜你喜欢

The third slam Technology Forum - Professor wuyihong

Flink principle and development summary (detailed)

集群聊天服务器:工程目录的创建

Modular development

SQLite数据库

High numbers | calculation of double integral 2 | high numbers | handwritten notes

1309_STM32F103上增加GPIO的翻转并用FreeRTOS调度测试

High numbers | calculation of double integral 3 | high numbers | handwritten notes
![[shader realizes roundwave circular ripple effect _shader effect Chapter 6]](/img/3f/90c2f0004303dc577eba1615fa3fd7.png)
[shader realizes roundwave circular ripple effect _shader effect Chapter 6]

Leetcode hot topic hot52-100
随机推荐
比较关注证券公司究竟哪个佣金最低?请问网上开户安全么?
2022-7-23 12点 程序爱生活 小时线顶背离出现,保持下跌趋势,等待反弹信号出现。
Green-Tao 定理的证明 (2): Von Neumann 定理的推广
TCP half connection queue and full connection queue (the most complete in History)
Proof of green Tao theorem (2): generalization of von Neumann theorem
Kubevela offline installation
第三届SLAM技术论坛-吴毅红教授
It's good to change jobs for a while, and it's good to change jobs all the time?
【持续更新】树莓派启动与故障系列集锦
基于速度、复杂性等因素比较KernelSHAP和TreeSHAP
Modular development
Kuberntes云原生实战六 使用Rook搭建Ceph集群
flink原理及开发总结(详细)
LeetCode_ 376_ Wobble sequence
LU_ Asr01 voice module usage
[100 cases of scratch drawing] Figure 46-scratch drawing flowers children's programming scratch programming drawing case tutorial grade examination competition drawing training case
Day109.尚医通:集成Nacos、医院列表、下拉列表查询、医院上线功能、医院详情查询
Pay more attention to which securities company has the lowest commission? Is it safe to open an account online?
Proof of green Tao theorem (1): preparation, notation and Gowers norm
集群聊天服务器:工程目录的创建