有时在同一张表名前加上e.或者d. t.
比如select employee_id, last_name,t.department_id,t.department_name
from employees e, departments t
Where e.department_id=t.department_id
Order by (select department_name
from departments d
where e.department_id=d.department_id)
这里为什么要在表employees 后面加个e?是为了之后可以简写吗?那departments为什么又加t,又加d,t和d对应的不都是同一张department表吗?
谢谢回答!