ISNUMERIC_UDF

Definition

This user-defined function (UDF) determines whether an expression is a valid numeric type.

ISNUMERIC_UDF(EXPR VARCHAR)

Parameters

EXPR VARCHAR

The expression to be evaluated.

Returns

Returns 1 when the input expression evaluates to a valid numeric data type; otherwise, it returns 0.

Usage example

Input:

SELECT ISNUMERIC_UDF('5');

Output:

1

Last updated