讨论数量:
试卷表 Table_A 问题表 Table_B 试卷问题关系表 Table_A_Table_B
如果需要展示一张卷子只需要
select * from Table_B as B join Table_A_Table_B as ab on ab.b_id = b.id where b.id = ?
问卷表 (question):
user_id、type、title
问卷答案表 (question_answer):
question_id、answer
用户提交答案表 (answer):
user_id、question_id、question_answer_id、answer
推荐文章: