pcsky
Oracle8
select a.*,b.* from a,b where a.id(+)=b.id  --相当于右联接
select a.*,b.* from a,b where a.id=b.id(+)  --相当于左联接


Oracle9
支持以上的写法,还增加了LeftJoin、Right Join等
select a.*,b.* from a left join b on a.id=b.id
select a.*,b.* from a right join b on a.id=b.id

Sqlserver
select a.*,b.* from a,b where a.id *= b.id  --相当于左联接
select a.*,b.* from a,b where a.id =* b.id  --相当于右联接
select a.*,b.* from a left join b on a.id=b.id
select a.*,b.* from a right join b on a.id=b.id

自己的一些经验,保存下来

分类:

技术点:

相关文章:

  • 2022-02-18
  • 2022-12-23
  • 2022-03-04
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2022-03-09
  • 2022-01-10
  • 2021-08-07
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案