除去重复记录distinct

在查询数据库时候,可以使用distinct关键字过滤重复记录

例如

SELECT distinct ShiftID
FROM [AdventureWorks].[HumanResources].[EmployeeDepartmentHistory]

posted @ 2014-06-07 23:01  冯际成  阅读(121)  评论(0编辑  收藏  举报

返回顶部