1.连接

---内连接
select * from dali.test1 a, dali.test2 b where a.a=b.a;

---左连接
select * from dali.test1 a, dali.test2 b where a.a=b.a(+);

---右连接
select * from dali.test1 a, dali.test2 b where a.a(+)=b.a;

---完全连接
select * from dali.test1 a, dali.test2 b where a.a=b.a(+)
union
select * from dali.test1 a, dali.test2 b where a.a(+)=b.a;

---迪卡尔
select * from dali.test1, dali.test2;

 

 

判断是否为空:
   在SQl Server中为ISNULL(field1,0)
   在Oracle中为NVL(field1,0)

相关文章:

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