当前位置:网站首页>Gbase 8s extended external connection 1
Gbase 8s extended external connection 1
2022-06-29 12:17:00 【Like to eat radish ice cold】
The next outer link lists the customer's company name and all associated order numbers , If the customer has placed an order . If not
Yes , Still list the company name , And return... For the order number NULL value .
SELECT company, order_num FROM customer c, OUTER orders o
WHERE c.customer_num = o.customer_num;
Hierarchical query clause
Hierarchical clauses set conditions for recursive queries on table objects , In the rows of the table object , There is a hierarchy of parent-child dependencies . Including this sub
Syntactic SELECT Statements are called hierarchical queries .
Must be in SELECT Of the statement FROM Clause specifies the table object on which the hierarchical query operation is performed . The table object is usually
Self reference table , Use one or more of these columns as another column in the same table ( Or a subset of these columns ) The foreign key constraint of .
Hierarchical query operates on several rows , A node within a logical structure in which one or more column values correspond to parent-child relationships . If
The father has many children , There is brotherhood among children of the same parents . for example , These relationships may reflect an organization's
Reporting structures among employees and managers at the Department and management levels .
The syntax supported by this clause is for SQL Of ANSI/ISO Standard extension .
START WITH Clause
Optional START WITH Clause specifies the condition . Rows that meet this condition become enabled in the hierarchical query CONNECT BY Clause
The root of the recursive operation of .
usage
START WITH Clause assignment CONNECT BY Clause for the first iteration of its recursive activity . If you save
A little START WITH Clause , be CONNECT BY Clause takes each row as the root of the hierarchy for the initial set of intermediate results
The reason is .
CONNECT BY Clause
CONNECT BY Clause specifies conditions for executing recursive operations in hierarchical queries .
CONNECT BY Clause is right SQL Of ANSI/ISO Standard extension .
usage
If you include START WITH Clause , The search criteria it specifies should be used to generate the first intermediate result set for the hierarchical query .
This is by those who are in FROM The table specified in Clause satisfies START WITH If the condition is true, the row constitutes .
If omitted START WITH Clause , There is no available START WITH Condition as filter , And the first intermediate result
Set is FROM Clause specifies the complete set of rows in the table .
By applying the CONNECT BY search criteria ,CONNECT BY Clause to generate a continuous intermediate result set , Until the iteration generates
When the result set is empty, the recursive process ends .
边栏推荐
- 杰理之发起对耳配对、回连、开启可发现、可连接的轮循函数【篇】
- Embedded database development programming (IV) -- DDL, DML
- Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cycle functions [chapter]
- 535. TinyURL 的加密与解密 : 设计一个 URL 简化系统
- 正大期货留4数据整合
- Engineering practice behind dall-e 2: ensure that the output of the model complies with the content policy
- [pbootcms template] composition website / document download website source code
- 2022 Guangxi provincial safety officer C certificate examination questions and mock examination
- Is it safe for Hengtai securities to open an account? Ranking of securities
- 初次使用 eolink 感受
猜你喜欢

MySQL 主从复制原理以及流程
![[pbootcms template] composition website / document download website source code](/img/6e/51bbb4ce961defa4abd098ff3af21f.jpg)
[pbootcms template] composition website / document download website source code

自动化测试摸索之路---准备工作
Some printer driver PPD files of Lenovo Lingxiang lenovoimage

什么是外链和内链?

文件包含之日志中毒(User-Agent)

Pro test! Centos7 deploy PHP + spool

Matlab GUI realizes the function of clicking the button, opening the file dialog box and importing pictures

Pytoch - distributed communication primitive (with source code)

RSLO:自监督激光雷达里程计(实时+高精度,ICRA2022)
随机推荐
Some printer driver PPD files of Lenovo Lingxiang lenovoimage
2022 Guangxi provincial safety officer C certificate examination questions and mock examination
GBase8s数据库与 FOR UPDATE 子句不兼容的语法
GBase8s数据库INTO TEMP 子句创建临时表来保存查询结果。
Jerry's manual pairing method [chapter]
Numpy's ndarray array Foundation
MIT线性代数中文笔记
力扣(LeetCode)179. 最大数(2022.06.28)
[pbootcms template] composition website / document download website source code
[pbootcms模板]作文网站/文档下载网站源码
GBase8s数据库select有ORDER BY 子句5
Codeforces Round #803 (Div. 2)
MySQL 主从复制原理以及流程
Li Kou daily question - day 31 -1779 Find the nearest point with the same X or Y coordinate
杰理之关于 TWS 交叉配对的配置【篇】
The blackened honeysnow ice city wants to grasp the hearts of consumers by marketing?
杰理之关于开机发起回连对耳的位置:【篇】
What is the main account of Chia Tai futures used for 4 quotation software?
谷粒商城项目
Do you think people who learn machinery are terrible?