SqlUserDefinedAggregateAttribute.IsNullIfEmpty 属性

定义

指示在没有对任何值进行累积时聚合是否返回 null

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

属性值

如果在没有对任何值进行累积时聚合返回 true,则为 null;否则为 false

注解

由查询处理器使用,如果聚合返回null的值尚未累积,则此属性true为 。

错误地设置此属性可能会导致不正确的查询结果。 此属性不是优化器提示;它会影响所选的计划以及查询返回的结果。

适用于