我想插入表數據和文本框的值到另一個表。我試圖插入命令如下,但它不工作。從另一個表插入表和值
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()"
m.ToString()的用戶是什麼? – 2013-02-21 08:49:55
m = Dr [0] .ToString(); max = Convert.ToInt16(m); max = max + 1; } con.Close(); con.Dispose(); Dr.RoseClose(); Dr.Dispose(); cmd.Cancel(); cmd.Dispose(); m = max.ToString(); – user1661868 2013-02-21 09:04:47