当前位置:网站首页>Set operator of gbase8s database in combined query
Set operator of gbase8s database in combined query
2022-06-29 12:19:00 【Like to eat radish ice cold】
Set operators UNION、UNION ALL、INTERSECT and MINUS Operably specify Projection Phase in Clause
The result set of two queries with the same number of columns , And there are compatible data types in the corresponding columns of the two queries .
(MINUS Set operators have EXCEPT As its keyword synonym .MINUS and EXCEPT Operators from the same
Operands usually return the same result .)
These operators perform basic set operations on the result sets of two queries 、 Intersection and subtraction , These two result sets are these sets
The left and right operands of the operator :
UNION The set operator combines qualified rows from two queries into a single result set , The result set consists of one
Non repeating rows returned by two queries or both queries .( If you also include ALL keyword , be
UNION ALL The result set can include duplicate rows .)
INTERSECT Set operator compares result sets from two queries , But only return the result set of two queries at the same time
Non repeating lines in .
MINUS Set operator compares result sets from two queries , But only return the result set of the query on the left, but not
The non repeating rows in the result set of the query on the right .
In the context of business analysis , Set operators are useful . They can also be used in SELECT In the sentence , After the execution of such as
UPDATE、INSERT、DELETE or MERGE In this way DML After the operation , To check the integrity of the database . When
When you transfer data to the history table , Set operators can be used similarly , for example , When you need to make sure before deleting rows from the original table
When you recognize that there are correct data in the historical table .
All set operators have the same order of precedence . In complex queries that include multiple set operators , The order of precedence of the operators is
From left to right . Use parentheses to group set operators and their operands , If you need to override the set operator's default from
Left to right priority .
only UNION Set operators support ALL keyword . with INTERSECT、MINUS or EXCEPT Set operators
Of ALL Keyword is invalid , Only non repeating rows are returned from it .
When comparing rows to calculate the union or difference of a set , stay INTERSECT and MINUS Two of the operations NULL Value is considered to be
equal .
边栏推荐
- Weekly recommended short video: How did Einstein think?
- Engineering practice behind dall-e 2: ensure that the output of the model complies with the content policy
- The blackened honeysnow ice city wants to grasp the hearts of consumers by marketing?
- cmake 报错
- GBase8s数据库INTO STANDARD 和 INTO RAW 子句
- RSLO:自监督激光雷达里程计(实时+高精度,ICRA2022)
- ERP Kingdee for preparing BOM
- [pbootcms模板]作文网站/文档下载网站源码
- Initial use of eolink
- Ensure drinking water safety! Panyu Shawan waterway water quality online monitoring system passed the acceptance
猜你喜欢

论文复现——AC-FPN:Attention-guided Context Feature Pyramid Network for Object Detection.

杰理之关于 TWS 配对方式配置【篇】

& 3 view request message and response message in browser

Helping the ultimate experience, best practice of volcano engine edge computing

SOFARegistry 源码|数据同步模块解析
Some printer driver PPD files of Lenovo Lingxiang lenovoimage
![[VTK] MFC grid editor based on vtk8.2](/img/c5/d0f070ccb819fc682855319b7415e0.png)
[VTK] MFC grid editor based on vtk8.2

Matlab GUI realizes the function of clicking the button, opening the file dialog box and importing pictures
![Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cycle functions [chapter]](/img/d7/f73e748ada302440326a8b1a46f916.png)
Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cycle functions [chapter]

The blackened honeysnow ice city wants to grasp the hearts of consumers by marketing?
随机推荐
龙书虎书鲸书啃不动?试试豆瓣评分9.5的猴书
ERP preparation of bill of materials Huaxia
iMile 利用 Zadig 多云环境周部署千次,跨云跨地域持续交付全球业务
杰理之关于开机发起回连对耳的位置:【篇】
Jerry's about TWS pairing mode configuration [chapter]
LM07丨细聊期货横截面策略
Gbase8s database select has order by Clause 6
Is the table queried by this EMR sparksql node ODPs?
Jerry's configuration of TWS cross pairing [chapter]
模糊图片变清晰,一键双色图片,快速整理本地图片...这8个在线图片工具申请加入你的收藏夹!
钛动科技:我们的 Zadig 落地之路
Jericho's position on initiating the connection back to the opposite ear: 【 chapter 】
MATLAB Gui 实现点击按钮,打开文件对话框,导入图片功能
Ensure drinking water safety! Panyu Shawan waterway water quality online monitoring system passed the acceptance
GBase8s数据库select有ORDER BY 子句
年轻就要醒着拼,年轻就要勇于尝试
在校生的编程故事
基于字节码的统一异常上报实践
MIT线性代数中文笔记
ERP编制物料清单 华夏