SqlUserDefinedAggregateAttribute.IsInvariantToDuplicates SqlUserDefinedAggregateAttribute.IsInvariantToDuplicates SqlUserDefinedAggregateAttribute.IsInvariantToDuplicates SqlUserDefinedAggregateAttribute.IsInvariantToDuplicates Property

定义

指示聚合是否与重复值无关。Indicates whether the aggregate is invariant to duplicates.

public:
 property bool IsInvariantToDuplicates { bool get(); void set(bool value); };
public bool IsInvariantToDuplicates { get; set; }
member this.IsInvariantToDuplicates : bool with get, set
Public Property IsInvariantToDuplicates As Boolean

属性值

如果聚合与重复值无关,则为 true;否则为 falsetrue if the aggregate is invariant to duplicates; otherwise false.

注解

由查询处理器,此属性是true如果聚合与重复值无关。Used by the query processor, this property is true if the aggregate is invariant to duplicates. 也就是说,S,聚合 {X} 时,可以为 S 的聚合相同 X 已经在 s。例如,聚合函数 MIN 和 MAX 如满足此属性,而总和不。That is, the aggregate of S, {X} is the same as aggregate of S when X is already in S. For example, aggregate functions such as MIN and MAX satisfy this property, while SUM does not.

未正确设置此属性可能导致不正确的查询结果。Incorrectly setting this property can result in incorrect query results. 此属性不是一个优化程序提示;它会影响选择的计划和由查询返回的结果。This property is not an optimizer hint; it affects both the plan selected and the results returned by the query.

适用于