distinct

Posted on 2010-11-29 21:57  gmtyt  阅读(273)  评论(0)    收藏  举报

distinct

  描述:查询顾客覆盖的国家

  查询句法:

  


var 过滤相同项 = (from c in ctx.Customers orderby c.Country select c.Country).Distinct();

  对应SQL:

  


SELECT DISTINCT [t0].[Country]
  FROM [dbo].[Customers] AS [t0

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3