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

備註

查詢處理器會使用這個屬性,如果匯總未累積任何值,這個屬性 true 就會傳回 null

不正確的設定此屬性可能會導致不正確的查詢結果。 此屬性不是優化工具提示;它會影響選取的計畫,以及查詢所傳回的結果。

適用於