CHAR

Learn how to use the CHAR string function in PlaidCloud Lakehouse. Return the character for each integer passed. Includes syntax and examples.

Return the character for each integer passed.

Analyze Syntax

func.char(N,...)

Analyze Examples

func.char(77,121,83,81,76)
┌─────────────────────────────┐
 func.char(77,121,83,81,76) 
├─────────────────────────────┤
 4D7953514C                  
└─────────────────────────────┘

SQL Syntax

CHAR(N, ...)

Arguments

ArgumentsDescription
NNumeric Column

Return Type

BINARY

SQL Examples

This example shows both the binary value returned as well as the string representation.

SELECT CHAR(77,121,83,81,76) as a, a::String;
┌────────────────────────┐
      a      a::string 
   Binary      String  
├────────────┼───────────┤
 4D7953514C  MySQL     
└────────────────────────┘