Dim cmd As New SQLCommand Dim dt As DataTable cmd.C cmd.CommandText = "SELECT * From {xssj}" dt = cmd.ExecuteReader() for i as Integer = 1 to dt.datarows.count - 1 for c as Integer = 1to dt.datacols.count - 1 if DataTables("评分标准").datarows(i)(c) = dt.datarows(i)(c) then output.show("有错误") end if next next 检验上述代码错哪儿了