SELECT [MobleNo],count(1)
FROM [CustMobleNo]
group by [MobleNo]
GO
===作用等于===
var rst = from c in dataContext.CustMobleNo
group c by c.MobleNo into g
select new
{
mobile=g.Key,
total=g.Count()
};
SELECT [MobleNo],count(1)
FROM [CustMobleNo]
group by [MobleNo]
GO
===作用等于===
var rst = from c in dataContext.CustMobleNo
group c by c.MobleNo into g
select new
{
mobile=g.Key,
total=g.Count()
};
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。