This topic describes how to use the string function CHAR_LENGTH in Realtime Compute.

Syntax

INT CHAR_LENGTH(A)

Input parameters

Parameter Data type
A INT

Function description

This function returns the number of characters contained in a string.

Examples

  • Test data
    var1(INT)
    ss
    231ee
  • Test statements
    SELECT CHAR_LENGTH(var1) as aa
    FROM T1;
    
  • Test results
    aa(INT)
    2
    5