Skip to main content

sql join

· 2 min read

什么是语言 ?

inductively defined sets

inductively defined sets 是由三部分组成

  • 1 一个初始集合
  • 2 一个生成规则
  • 3 声明除了这个1 2两个条件之外没有其他的元素属于这个集合

例子

自然数集合

{0 , 1 , 2 ...}

这个集合 首先一个元素

{0}

然后是规则

suc(i) 

left join 和right join的区别?

我是大学学通信工程的,有些数学概念还是不太全,只能偶尔补一下啦. 我一直找left joinright join的定义或者rfc文件. 就像c语言看c89 c99一样,你看sql也可以看sql 99, 这个文档有描述什么是left join

Let XN1 and XN2 be effective distinct names for X1 and X2, respectively. Let TN be an effective
name for T.
Case:
a) If INNER or <cross join> is specified, then let S be the multiset of rows of T.
b) If LEFT is specified, then let S be the multiset of rows resulting from:
SELECT FROM T
UNION ALL
SELECT FROM X1
c) If RIGHT is specified, then let S be the multiset of rows resulting from:
SELECT FROM T
UNION ALL
SELECT FROM X2

相关阅读