ASCII in JS
Description
Sample Source Pattern
Syntax
string.charCodeAt( [index] )Arguments
Return Type
Examples
Known Issues
Related EWIs
Last updated
string.charCodeAt( [index] )Last updated
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|