這是我的表格結構。通過連接從超過2個mysql表中獲取數據。
Table1 // it has 4 colums,that saves all the question posted by user
id|question|answer|postby|
Table2 //it has 2 colums, that saves all the signed up users
id|username|email|
Table3 //it saves that which question is read by which user.
id|reader_id|question_id|
注:reader_id是表2
問題的ID:我們需要找出那些沒有被特定用戶閱讀的問題。
待辦事項你的意思是'reader_id',而不是'user_id'? –
哦,是的,我的壞,對不起。 - 編輯。 –
感謝您的快速回復Loic我們還需要來自Table2的電子郵件,因爲Table2保存了發佈問題和閱讀的人員的信息。 –