我想在for循环中插入线程,可以吗?

时间:2019-11-04 05:42:39

标签: vb.net multithreading

For Each dtRowa As DataRow In dt.Rows
    For Each dtRow As DataRow In SQLDataTable.Rows
        If dtRow("ID") = dtRowa("ID") Then
            Sql = "UPDATE AlphaTbl SET LASTNAME ='" + dtRowa("LASTNAME") + "', FIRSTNAME= '" +
                        dtRowa("FIRSTNAME") + "' WHERE ID= '" + dtRowa("ID") + "' "
            Dim cmd As New SQLiteCommand(Sql, _SQLiteCon)
            cmd.ExecuteNonQuery()
        End If
    Next
Next

请寻求帮助,以解决此问题

0 个答案:

没有答案