Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 756 Bytes

File metadata and controls

39 lines (30 loc) · 756 Bytes
description
Determines whether an expression is a valid numeric type (DECIMAL, DOUBLE, INT, BIGINT, VARBINARY).

ISNUMERIC

Syntax

ISNUMERIC(expression any) → boolean

  • expression: Can be a general expression of any Spice-supported data type.

Examples

{% code title="ISNUMERIC example" %}

SELECT ISNUMERIC('13579')
-- True

{% endcode %}

{% code title="ISNUMERIC example" %}

SELECT ISNUMERIC('Hello World!')
-- False

{% endcode %}

{% code title="ISNUMERIC example" %}

SELECT ISNUMERIC(transaction_count)
FROM eth.recent_blocks 
LIMIT 1 

-- True

{% endcode %}