积极答复者
Linq 数据多字段传回最大值的问题

问题
答案
-
加一个group by into 就可以了
select .. from t where ... group t by .... into g select (....., col=g.max(t=>t.col))
Visual C++ MVP
全部回复
-
加一个group by into 就可以了
select .. from t where ... group t by .... into g select (....., col=g.max(t=>t.col))
Visual C++ MVP -
不太理解
Sheng Jiang 蒋晟可以请您帮忙写出对应这个需求的linq代码吗?
我目前写到这里 也不晓得对不对
Dim 黑三原色最大值 = From 辨识颜色表 In 颜色数据表.辨识颜色表i Where 辨识颜色表.颜色 = "黑A" Group 辨识颜色表 By 辨识颜色表.三原色值, 辨识颜色表.三原色值, 辨识颜色表.三原色值 Into MAX()