ASCII in JS
Description
Sample Source Pattern
Syntax
string.charCodeAt( [index] )Arguments
Return Type
Examples
CREATE OR REPLACE FUNCTION get_ascii(c char)
RETURNS string
LANGUAGE JAVASCRIPT
AS
$$
return C.charCodeAt();
$$;
SELECT GET_ASCII('A') A, GET_ASCII('a') a; A| a|
-----------+ ----------+
65| 97| Last updated
Was this helpful?