如何在 LINQ ( C# ) 中编写此查询
本文关键字:查询 LINQ | 更新日期: 2023-09-27 18:32:50
Select * from table
where Numero_Operacion in
(
Select Numero_Operacion from table
group by Numero_Operacion
having count(Numero_Operacion)>1
)
谢谢!
会是这样的
<Table>.GroupBy(x => x.Numero_Operacion)
.Where(x => x.Count() > 1)
.SelectMany(x => x)