Returns a single-byte character with the integer sent as a parameter on the ASCII table (CHAR in Transact-SQL).
Input:
SELECT CHAR(170) AS SMALLEST_A
Output:
SMALLEST_A|
-----------+
ª|
Code:
SELECT
CHAR(170) AS SMALLEST_A;
Result:
SMALLEST_A|
-----------+
ª|
Code:
CREATE OR REPLACE FUNCTION get_char(expression float)
RETURNS string
LANGUAGE JAVASCRIPT
AS
$$
return String.fromCharCode( EXPRESSION );
$$;
SELECT GET_CHAR(170) SMALLEST_A;
Result:
SMALLEST_A|
-----------+
ª|