說我有以下設置SQL查詢中返回從一個表彙總結果列
---Posts---
|id
|Title
-----------
---Comments---
|id
|postid
|comment
-----------
一些模擬數據
Posts
ID Title
1 Hello World
2 Good Bye
3 Pepsi
Comments
ID postid comment
1 1 comment 1
2 2 comment 2
3 2 comment 3
我想回到回從職位表中的標題以及通過評論表中的ID與其相關的所有評論。
有點像。
Title Comment
Hello World comment1
Good Bye comment2
comment3
Pepsi null
這可能只是使用SQL?