以下是引用lxl在2010-12-9 20:00:00的发言:
Dim cmd As New SQLCommand
cmd.CommandText = "update {表A} a Left Join {表A} b on a.第一列 = b.第二列 set a.第三列 = True where b.[_Identify] Is Null"
cmd.ExecuteNonQuery
lxl版主上面的代码是贺老师下面代码一样的功能吗,怎么没有显示下面代码的效果
For Each dr As DataRow In DataTables("表A").DataRows
If DataTables("表A").Find("第二列 = " & dr("第一列") ) Is Nothing Then
dr("第三列") = True
Else
dr("第三列") = False
End If
Next