select p.id, p.name, t.content
from person p
left join
task t
on p.id=t.person_id
order by p.id
  • 考察连接,要求包括所有人,所以连接要以person表作为连接依据