表连接实验

1 基础表

1.1tb2 

多表查询-实验

1.2 tb3 

 多表查询-实验

2 连接实验 

2.1 自然连接

多表查询-实验 

2.2 using 子句

2.2.1  using(name)

多表查询-实验 

2.2.1  using(id) 

多表查询-实验 

2.3 on子句

2.3.1 外连接

2.3.1.1 左连接 

多表查询-实验 

2.3.1.2 右连接  

多表查询-实验 

2.3.2 内连接

多表查询-实验 

2.4 数据集合运算

2.4.1 共集

2.4.1.1 union

多表查询-实验

2.4.1.2 union all 

多表查询-实验

2.4.2 差集

select * from tb3 minus select * from tb3 where id>10

多表查询-实验

2.4.3 交集 

select * from tb3 intersect select * from tb3 where id>10

多表查询-实验

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2021-11-04
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案