📜  分层数据库表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:16.294000             🧑  作者: Mango

代码示例1
SELECT e.id, e.first_name, e.role, e.manager_id, m.first_name
FROM employee e
LEFT JOIN employee m ON e.manager_id = m.id;