select *
from t_employee
left join t_department _ref0 on t_employee.department_id = _ref0.id
where _ref0.location = ?
t_department 和 _ref0 这两个表写在一起是什么意思呢?
select *
from t_employee
left join t_department _ref0 on t_employee.department_id = _ref0.id
where _ref0.location = ?
t_department 和 _ref0 这两个表写在一起是什么意思呢?
1 回答2.4k 阅读✓ 已解决
1 回答2.4k 阅读✓ 已解决
282 阅读
这是一个表,起了个别名,省略了
AS
。其实是:
后面你就可以用
_ref0
指代这个t_department
。一般是表名比较长时起到缩写的作用的。