在asp.net中如何插入带有条件的sql语句
DiminsertstrAsString="insertintotb_Exam(CourseID,ExamName,TeacherNum,CreationTime,Lim...
Dim insertstr As String = "insert into tb_Exam(CourseID,ExamName,TeacherNum,CreationTime,LimitedTime,Pass) values(" & CInt(ddlCourseID.SelectedValue) & ",'" & txtTitle.Text & "','" & Me.txtTeacherID.Text.Trim & "','" & Me.txtCreationTime.Text.Trim & "'," & Me.txtLimitedTime.Text.Trim & "," & Me.txtPass.Text.Trim & ") select @@IDENTITY as id"
如何添加判断语言 ExamID='"&id&"' 展开
如何添加判断语言 ExamID='"&id&"' 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询