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

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

适用于