oracle在where子句中加(+) 什么意思啊?

2024-11-10 16:11:40
推荐回答(5个)
回答1:

Oracle数据库的连接查询包括:等值连接、外连接、自连接等。
where子句中加(+) 是外连接的一种。外连接分:左外连接和右外连接。
select * from emp,dept where emp.deptno=dept.deptno(+); --右外连接
select * from emp,dept where emp.deptno(+)=dept.deptno; --左外连接
带(+)侧的数据即使不存在,另一侧的数据依然可以显示出来。

回答2:

select A.* ,B.* from A,B where A.id = b.id(+)
相当于
select A.*,B.* from A left join B on A.id = B.id

回答3:

连接!

回答4:

外连接,有左外连接和右外连接之分,看是加在条件的哪一头了

回答5:

在什么地方写的,是sql里吗?
应该在某种语言中,用于连接串吧