oracle sql中的联接关键字和内部联接关键字有什么区别?
我在关键字oracle sql中的联接关键字和内部联接关键字有什么区别?,sql,oracle,join,inner-join,Sql,Oracle,Join,Inner Join,我在关键字join上找不到文档,但我在网上看到了使用它的例子 我在Oraclehrschema中做了一些实验,其中有表departments: 部门名称 manager\u id location\u id 表员工: 名字 employee\u id 和表位置: location\u id 城市 查询应返回部门名称、部门经理的姓名以及部门所在城市 使用关键字join的代码与使用关键字internaljoin 与连接的代码: select d.department_name, e.fi
join
上找不到文档,但我在网上看到了使用它的例子
我在Oraclehr
schema中做了一些实验,其中有表departments
:
部门名称
manager\u id
location\u id
员工
:
名字
employee\u id
位置
:
location\u id
城市
join
的代码与使用关键字internaljoin
与连接的代码
:
select d.department_name, e.first_name,l.city
from departments d
join employees e on d.manager_id=e.employee_id
join locations l on d.location_id=l.location_id
select d.department_name, e.first_name,l.city
from departments d
inner join employees e on d.manager_id=e.employee_id
inner join locations l on d.location_id=l.location_id
带有内部联接的代码
:
select d.department_name, e.first_name,l.city
from departments d
join employees e on d.manager_id=e.employee_id
join locations l on d.location_id=l.location_id
select d.department_name, e.first_name,l.city
from departments d
inner join employees e on d.manager_id=e.employee_id
inner join locations l on d.location_id=l.location_id
这两种情况之间是否存在差异,或者我只是碰巧遇到了一种情况,它们返回相同的结果?- 以下是1992年ANSI SQL参考:
- 按照Oracle标准(9i以后的),
前缀也是可选的。在9i之前,Oracle不遵循ANSI规则,甚至不支持内部
语法JOIN