当前位置:网站首页>GBase 8s V8. 8 SQL Guide: Tutorial - 6.2.2 (1)
GBase 8s V8. 8 SQL Guide: Tutorial - 6.2.2 (1)
2022-04-22 22:42:00 【Gbase database】
6.2.2 External connection
This chapter shows how to SELECT Statement to create and use external connections . Create connection discussion internal connection . Although connected
Then treat two or more connected tables equally , But the external connection is different from the table with two or more connections . The external connection makes it
One of the tables becomes the control table ( Also known as external tables ), Control other dependent tables ( Also known as internal tables ).
In an inner connection or a simple connection , The result contains only the combination of rows that meet the connection conditions . Discard rows that do not meet the connection conditions .
In the external connection , The result includes the rows that meet the connection conditions and the rows in the control table ( If no matching... Is found in the dependent table
OK, then these lines will be abandoned ) The combination of . There are no matching rows in the dependent table. The rows of the control table are included in the columns selected from the dependent table
NULL value .
External joins allow you to apply join filters to internal tables before applying join conditions .
Earlier versions of the database server only supported for external connections ANSI-SQL Standard grammatical GBase 8s Expand .
This syntax is still supported . However ,ANSI-SQL The standard syntax is more flexible in creating queries . It is recommended to use
ANSI-SQL Standard syntax to create new queries . No matter what form of syntax you use , It must be used for a single query
All external connections in the block .
Before relying on external connections , Determine whether one or more internal connections are operational . When there is no need for supplementary letters from other forms
Rest time , Internal connections can usually be used .
Limit : Cannot combine... In the same query block GBase 8s and ANSI Outer join grammar .
Information about the syntax of outer join , see also 《GBase 8s SQL guide : grammar 》.
External connection grammar GBase 8s Expand
External connection grammar GBase 8s The extension is used at the beginning of the external connection OUTER keyword . When using GBase
8s Grammatical time , Must be in WHERE Clause contains connection conditions . Will be GBase 8s When the syntax is used for external connections , Count
The database server supports the following three basic types of external connections :
• External connection of two tables
• An external connection that simply connects to the third table
• Outer join two tables with the third table
The external connection must have Projection Clause 、FROM Clause and WHERE Clause . Connection condition WHERE Son
Expression in sentence . To convert a simple connection to an external connection , stay FROM Clause before the name of the dependent table
Key word OUTER . As shown later in this section , You can include... Multiple times in the query OUTER keyword .
There is no external connection syntax GBase 8s Extension is equivalent to ANSI Right connection .
版权声明
本文为[Gbase database]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204222204593730.html
边栏推荐
- GBase 8s V8.8 SQL 指南:教程-6.2.1(2)
- SecureCRT v7.0连接sshd服务失败解决
- vickers威格士比例阀的特点
- 小赛毛游C记——初识C语言(3)
- Overview of working principle and main characteristics of ATOS proportional valve
- 为什么BI对企业这么重要?
- Saiweidian broke on the first day of listing: the market value evaporated by more than 1.5 billion yuan, and the business scale lost slightly
- ES6 transforms two-dimensional and multi-dimensional arrays into one-dimensional arrays
- 高端啤酒正在失去年轻人
- Metawork: please, this remote pairing programming is cool!
猜你喜欢

2021下半年软件设计师上午真题及答案解析

LLVM 学习(一) -初识LLVM

R语言数据分析从入门到高级:(九)数据清洗技巧之数据表连接大全

How to use lightly to teach programming classes gracefully?

动态规划:分组背包问题

51 MCU proteus simulation key control nixie tube digital display

【洛谷】P1162 填涂颜色(bfs)

高端啤酒正在失去年轻人

What is the magic of moonbirds NFT, which became popular overnight?

时间戳有什么作用,如何申请?
随机推荐
【深入浅出强化学习】2 马尔可夫决策过程
Youqilin 22.04 lts version is officially released | ukui 3.1 opens a new experience!
JS解力扣每日一题(八)——396.旋转函数(2022-4-22)
来个 vue 大佬,看看有没有 iframe 缓存方案?
【零散知识点总结5】
MySql--库的操作
41.0:GemBox.Spreadsheet|.Document|.Pdf|.Presentation
0基础UnityURP渲染管线之阴影ShadowCaster-ShadowMask-Map傻傻分不清楚(代码向)
条件编译分析及使用
Listing on the Shanghai Stock Exchange of CNOOC: market value of 6.515 billion and annual profit of 70.3 billion
二分法应用:875. 爱吃香蕉的珂珂
2021下半年软件设计师上午真题及答案解析
浅谈细说构造函数
动态规划:分组背包问题
Flutter hybrid development
opcua协议如何在appinventor上使用?
2.58-编写程序is-little-endian,当在小端法机器上编译和运行时返回1,在大端法机器上编译和运行时则返回0。这个程序应该可以运行在任何机器上,无论机器的字长是多少。
js 截取文件后缀名
跨域问题及Umi-proxy代理解决跨域问题
Pangolin安装报错:make: *** 没有规则可制作目标“pypangolin_pip_install”。 停止。