实例:
select userid,SignId,UserFullName , count(roleid) from dbo.View_SignInfo where userid=27 group by userid,UserFullName,SignId
代码解释:
列值不同的列是:roleid
列值相同的列是:userid,SignId,UserFullName