Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs)
ProtectedSubButton2_Click(ByValsenderAsObject,ByValeAsSystem.EventArgs)HandlesButton2...
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim conn As New SqlConnection
conn.ConnectionString = ("Server=M\sqlexpress;DataBase=HRM_sq;Integrated security=SSPI ")
Dim strsql As String
strsql = "delete * from Customer where CustomerId=" & Request.QueryString("CustomerId")
Dim cmd As New SqlCommand(strsql, conn)
conn.Open()
cmd.ExecuteNonQuery()
conn.Close()
End Sub一个删除语句 应该是写错了 说我*附近有错误 不明白。。。 展开
Dim conn As New SqlConnection
conn.ConnectionString = ("Server=M\sqlexpress;DataBase=HRM_sq;Integrated security=SSPI ")
Dim strsql As String
strsql = "delete * from Customer where CustomerId=" & Request.QueryString("CustomerId")
Dim cmd As New SqlCommand(strsql, conn)
conn.Open()
cmd.ExecuteNonQuery()
conn.Close()
End Sub一个删除语句 应该是写错了 说我*附近有错误 不明白。。。 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询