Returns the first non-NULL expression from a list. This function is identical to the COALESCE function.
ISNULL( expression, expression [, ...] )
expression An expression to be tested against NULL.
At least two expressions must be passed into the function, and all expressions must be comparable.
The return type for this function depends on the expressions specified. That is, when the database server evaluates the function, it first searches for a data type in which all the expressions can be compared. When found, the database server compares the expressions and then returns the result in the type used for the comparison. If the database server cannot find a common comparison type, an error is returned.
SQL/2003 Vendor extension.
The following statement returns the value -66.
SELECT ISNULL( NULL ,-66, 55, 45, NULL, 16 );
|Envoyer votre avis sur cette page par email.||Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|