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

IS_STRING



Checks if the input JSON value is a string.

Syntax

IS_STRING( <expr> )

Return Type

Returns true if the input JSON value is a string, and false otherwise.

Examples

SELECT IS_STRING(PARSE_JSON('"abc"')), IS_STRING(PARSE_JSON('123')); ┌───────────────────────────────────────────────────────────────┐ │ is_string(parse_json('"abc"')) │ is_string(parse_json('123')) │ ├────────────────────────────────┼──────────────────────────────┤ │ truefalse │ └───────────────────────────────────────────────────────────────┘

Was this page helpful?