📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

IS_INTEGER



Checks if the input JSON value is an integer.

Syntax

IS_INTEGER( <expr> )

Return Type

Returns true if the input JSON value is an integer, and false otherwise.

Examples

SELECT IS_INTEGER(PARSE_JSON('123')), IS_INTEGER(PARSE_JSON('[1,2,3]')); ┌───────────────────────────────────────────────────────────────────┐ │ is_integer(parse_json('123')) │ is_integer(parse_json('[1,2,3]')) │ ├───────────────────────────────┼───────────────────────────────────┤ │ truefalse │ └───────────────────────────────────────────────────────────────────┘

Was this page helpful?