updateCommand.CommandText = "Update E set [LR/Virtual/MW]='LR',[Vir No#]=null from [E1$] E join (SELECT [Conc] , [Vir No#] FROM [E1$] where [Vir No#] is not null group by Conc ,[Vir No#] having Count(LR)<28) a on e.[Conc]=a.[Conc] and e.[Vir No#]=a.[Vir No#]";
以及何时
updateCommand.ExecuteNonQuery();
我收到错误
查询表达式中的语法错误(缺少运算符)'来自[E1 $] E的空值 join(SELECT [Conc],[Vir No#] FROM [E1 $]其中[Vir No#]不为null 在Conc上分组,[Vir No#]具有计数(LR)&lt; 28)a e。[Conc] = a。[Conc] 和e。[Vir No#] = a。[Vir No#]'。