CHAR (Lakehouse v1)
Return the character for each integer passed.
Analyze Syntax
Section titled “Analyze Syntax”func.char(N,...)Analyze Examples
Section titled “Analyze Examples”func.char(77,121,83,81,76)┌─────────────────────────────┐│ func.char(77,121,83,81,76) │├─────────────────────────────┤│ 4D7953514C │└─────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”CHAR(N, ...)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
| N | Numeric Column |
Return Type
Section titled “Return Type”BINARY
SQL Examples
Section titled “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 │└────────────────────────┘