Dim cmd As New SQL Command
Dim dt As DataTable
cmd.Connectio nName = “”AAAAAA"
cmd.Comma ndText = "SEL ECT 交易户名,交易卡号,交易账号,年度,期间 From {银行明细}"
dt = cmd.Execut eReader()
For Each dr As DataRow In dt.DataRows
If DataTables("银行目录").Find("交易卡号 = '" & dr("交易卡号") & "'and 交易账号 = '" & dr("交易账号") & "'and 交易户名 = '" & dr("交易户名") & "' and 年度 = '" & dr("年度") & "'and 期间 = '" & dr("期间") & "' ") Is Nothing Then
Dim nr As DataRow = DataTables("银行目录").AddNew()
For Each dc As DataCol In dt.DataCols
nr(dc.name) = dr(dc.name)
Next
End If
Next
银行明细大约有70万行,上述代码运行时间至少的12小时,有没有办法快点?