PhoneID not 后面的select只能有一个字段,你现在有两个字段

解决方案 »

  1.   


    string commandselect = "select top 100 CSVDetail,PhoneID from TestReport where PhoneModel like '%U971%' and PlanFile like '%校准%' and Result='PASS' and EndTM>='" + dttoday +"' and PhoneID not in(select top 100 PhoneID from TestReport where PhoneModel like '%U971%' and PlanFile like '%校准%' and Result='PASS' and EndTM>='" + dttoday + "')";百度了一下解决了,应该是 两个查询的条件应该一致。