Documentation

getIsNullFunction

string public
\Bitrix\Main\DB\MssqlSqlHelper::getIsNullFunction(
 string $expression,
 string $result
);
for testing database field or expressions against NULL value.

This non-static method returns SQL functionto test database fields and expressions against NULL value. When it is NULL then $result will be returned.

All parameters are SQL unsafe.

Parameters

ParameterDescriptionVersion
$expressionDatabase field or expression for NULL test.
$resultDatabase field or expression to return when $expression is NULL.

Examples



© «Bitrix24», 2001-2024
Up