当前位置:网站首页>Union in gbase8s database subquery
Union in gbase8s database subquery
2022-07-22 18:10:00 【Like to eat radish ice cold】
You can go to WHERE Clause 、FROM Within clause SELECT Statement in a subquery , And use in aggregate subqueries
UNION and UNION ALL Operator . However , Here it is GBase 8s In the version , Including... Is not supported in the following context
UNION or UNION ALL Subquery of :
• In the definition of view
• In trigger events or Action clause
• Use FOR UPDATE Clause or use Update The cursor
Information about collection subqueries , see also Aggregate subquery . About FOR UPDATE More information about clause , see also FOR
UPDATE Clause .
Especially , The database in this version supports the inclusion of UNION Subquery of .
In the combined subquery , The database server can only resolve the column name in the scope referenced by the qualified table of the column . for example , The following query
Returns an error :
SELECT * FROM t1 WHERE EXISTS
(SELECT a FROM t2
UNION
SELECT b FROM t3 WHERE t3.c IN
(SELECT t4.x FROM t4 WHERE t4.4 = t2.z));
Here it is , Unresolved innermost subquery t2.z, because z Occurs in table references t2 Out of the scope of reference . In the innermost sub check
Inquiry in progress , Only resolvable belongs to t4、t3 or t1 Column reference of . The scope of the table reference is extended downward through subqueries , But don't cross
UNION Operator extends to brother SELECT sentence .
边栏推荐
- Go concurrent programming - work pool
- [paper summary] 2D target detection article summary, continuously updated
- Pointeur de fonction C et fonction de rappel
- go 切片,集合简单讲解
- [exception] generate guid and datetime, import test data to the database
- 力扣练习——26 分割数组为连续子序列
- Arrays类的理解学习
- 十七、C函數指針與回調函數
- OceanBase数据库搭建测试
- The problem of the result set returned by MySQL stored procedure
猜你喜欢
Use of bullets in object pool mode in aircraft war
JS String charAt substring() substr slice toUpperCase toLowerCase indexOf
Dokcer running Nacos container automatic exit problem
并发模型值Actor和CSP
如何破解IT中年危机下的惨淡人生
web3分享
RK3399平台开发系列讲解(内存篇)15.33、为什么可用内存会远超物理内存?
Understanding and learning of dates
Oracle statement adjustment
RK3399平台开发系列讲解(ALSA子系统)4.37、ALSA驱动框架
随机推荐
如何破解IT中年危机下的惨淡人生
力扣练习——30 设置交集大小至少为2
go对接口简单理解
【论文汇总】2D目标检测文章汇总,持续更新
Go has a simple understanding of the interface
OceanBase数据库搭建测试
测试员职场最大的危机不是30岁,而是中年被裁
Pytoch implements word2vec
Concurrent model values actor and CSP
[LeetCode]-链表-3
The problem of the result set returned by MySQL stored procedure
Unity textmeshpro namespace reference and component acquisition
Arrays类的理解学习
ieee下载文献的方法
GBase8s数据库SET AUTOFREE 语句
GBase8s数据库由数据库对象执行的对照
Teach you to write makefile files from 0
Bigder:40/100 how to organize a use case review
Logistic regression (formula derivation +numpy Implementation)
GBase8s数据库UNION 运算符