Dim dt1 As DataTable = DataTables("表A") Dim dt2 As DataTable = DataTables("表B") Dim dt3 As DataTable = DataTables("表C") For Each dr1 As DataRow In dt1.Select("编码 is not null") For Each dr2 As DataRow In dt2.Select("编码 = '" & dr1("编码") & "'") Dim dr3 As DataRow = dt3.addnew dr3("某列") = dr2("某列") dr3("某列") = dr2("某列") dr3("某列") = dr2("某列") Next Next