Returns a single-byte character with the integer sent as a parameter on the ASCII table (CHAR in Transact-SQL).
CHAR( expression )
Snowflake SQL complete documentation
{CHR | CHAR} ( <input> )
JavaScript complete documentation
String.fromCharCode( expression1, ... , expressionN )
Input:
SELECT CHAR(170) AS SMALLEST_A
Output:
SMALLEST_A| -----------+ ª|
Code:
SELECT CHAR(170) AS SMALLEST_A;
Result:
CREATE OR REPLACE FUNCTION get_char(expression float) RETURNS string LANGUAGE JAVASCRIPT AS $$ return String.fromCharCode( EXPRESSION ); $$; SELECT GET_CHAR(170) SMALLEST_A;
Last updated 1 year ago