语法
ISNULL ( check_expression , replacement_value )
参数
check_expression can be of any type.‘ data-guid="2e97ab7782056011dc62cc221b8d50c4"> check_expression 可以为任何类型。replacement_value must be of a type that is implicitly convertible to the type of check_expresssion.‘ data-guid="0a800d7385dd2a87b954bff8f5bf0ba4">返回类型
check_expression.‘ data-guid="b3c0b3438ba39535b337c6cebcc90264"> 返回与 check_expression 相同的类型。 check_expression, returns the datatype of the replacement_value.‘ data-guid="ca231a258f52989d1f6e62941a02f18e">如果文字 NULL 作为 check_expression 提供,则返回 replacement_value 的数据类型。 check_expression and no replacement_value is provided, returns an int.‘ data-guid="af40735a2456f34177b7f839a9ef1e9b">如果文字 NULL 作为 check_expression 提供并且未提供 replacement_value,则返回 int。
check_expression and no replacement_value is provided, returns an int.‘ data-guid="af40735a2456f34177b7f839a9ef1e9b">注释
check_expression is returned if it is not NULL; otherwise, replacement_value is returned after it is implicitly converted to the type of check_expression, if the types are different.‘ data-guid="4a2c5257afd08f5323d858cc6dc2085a"> 如果 check_expression 不为 NULL,则返回它的值;否则,在将 replacement_value 隐式转换为 check_expression 的类型(如果这两个类型不同)后,则返回前者。 replacement_value can be truncated if replacement_value is longer than check_expression.‘ data-guid="e3a49c2b7de93bc16785b81f1a3eaae8">如果 replacement_value 比 check_expression 长,则可以截断 replacement_value。