次の方法で共有


CompareNull Property

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。 新しい開発作業では、この機能の使用を避け、現在この機能を使用しているアプリケーションは修正するようにしてください。

The CompareNull property controls evaluation of NULL for equality.

構文

object.CompareNull [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list

  • value
    TRUE or FALSE

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetCompareNull(LPBOOL pRetVal);
HRESULT SetCompareNull(BOOL NewValue);

説明

If TRUE, the expression NULL = NULL evaluates as NULL.

If FALSE, the expression NULL = NULL evaluates as TRUE.

Any value for CompareNull is overridden by the AnsiNulls property, which controls NULL evaluation for a client session.

Applies To: