https://stackoverflow.com/a/1764901/13670488
根据链接中的解决方案,用户可以同时插入3个问题及其答案吗?怎么样?
答案 0 :(得分:0)
insert
将占用多行。例如。
-- Person 10 answered survey 5.
-- Question 1 they picked Offered Answer 3
-- Question 2 they picked Offered Answer 6
-- Question 3 they picked Offered Answer 7
insert into answer (SurveyID, QuestionID, OfferedAnswerID, PersonID)
values (5, 1, 3, 10), (5, 2, 6, 10), (5, 3, 7, 10);