SQL 左联接多个表
SQL Left Join multiple tables
我有 5 个关系 table,比方说 a、b、c、d、e。
如何使用唯一的列 "ID" 将 table 中的 4 个 "b,c,d,e" 加入到 table "a" 中tables?
我想在 MS Access 中使用 sql 查询来执行此操作。
在 MS Access 中,你需要一堆括号:
select . . .
from (((a left join
b
on a.id = b.id
) left join
c
on a.id = c.id
) left join
d
on a.id = d.id
)
on a.id = e.id;
我有 5 个关系 table,比方说 a、b、c、d、e。
如何使用唯一的列 "ID" 将 table 中的 4 个 "b,c,d,e" 加入到 table "a" 中tables?
我想在 MS Access 中使用 sql 查询来执行此操作。
在 MS Access 中,你需要一堆括号:
select . . .
from (((a left join
b
on a.id = b.id
) left join
c
on a.id = c.id
) left join
d
on a.id = d.id
)
on a.id = e.id;