By the way, you can refer to the code below, use parameter in update sql.prettyprint 复制 Dim con As SqlConnection Dim cmd As SqlCommand Dim row As Integer 'Dim str As String con = New SqlConnection("server=.;database=Test;integrated security=true") con.Open() cmd = New SqlCommand...