IS_INTEGER (query NoSQL)
SI APPLICA A: NoSQL
Restituisce un valore booleano che indica se un numero è un intero con segno a 64 bit. Gli interi con segno a 64 bit vanno da -9,223,372,036,854,775,808
a 9,223,372,036,854,775,807
. Per altre informazioni, vedere __int64.
Sintassi
IS_INTEGER(<numeric_expr>)
Argomenti
Descrizione | |
---|---|
numeric_expr |
Espressione numerica. |
Tipi restituiti
Restituisce un valore booleano.
Esempi
In questo esempio viene illustrata la funzione con vari valori statici.
SELECT VALUE {
smallDecimalValue: IS_INTEGER(3454.123),
integerValue: IS_INTEGER(5523432),
minIntegerValue: IS_INTEGER(-9223372036854775808),
maxIntegerValue: IS_INTEGER(9223372036854775807),
outOfRangeValue: IS_INTEGER(18446744073709551615)
}
[
{
"smallDecimalValue": false,
"integerValue": true,
"minIntegerValue": true,
"maxIntegerValue": true,
"outOfRangeValue": false
}
]
Osservazioni:
- Questa funzione trae vantaggio da un indice di intervallo.