我想将表数据和文本框值插入到另一个表中。我正在尝试如下插入命令,但它不起作用。
Insert into
Table_UserAnswer
(
UserQuizID,
QuizID,
QuestionID,
Title,
Answer1,
Answer2,
Answer3,
Answer4,
CorrectAnswer
)
'" + m.ToString() +
"',
select
top 5 QuizID,
QuestionID,
Title,
Answer1,
Answer2,
Answer3,
Answer4,
CorrectAnswer
from
[Table_Question]
order by
newid()"