1
獲取數據我有3個表從3個數據庫表
Users
- 列id, userName,
...Comment
- 列id, text, userId, roomId
CommentRate
- 列userId, commmentId
CommentRate
表包含userId
那就是喜歡這個由確定的評論。
我想roomId
選擇從Comment
表中的所有評論(id, text, roomId, userId, userName, []ListOfLikes
)其中[]ListOfLikes
應該包含userId, userName
。
我不能讀你寫的東西,請格式化你的問題,並說清楚 – Ahmad 2014-12-13 18:05:21
我可以選擇列表中的一列是列表嗎? – elgamal 2014-12-13 18:18:12
不,你不能選擇哪一列的列,所有應該是值 – Ahmad 2014-12-13 18:28:02